Zed A. Shaw
|
ecc264db8c
|
Now easier to write tests for the app, and most pages are at least touched.
|
5 days ago |
Zed A. Shaw
|
d095bc9ff4
|
Now can alternatively generate a static page for a URL from pages, or dynamically return it with c.Render from views. Did this for games and streams.
|
5 days ago |
Zed A. Shaw
|
cb537328ff
|
Small config and my own little lib.
|
5 days ago |
Zed A. Shaw
|
a2adf8ad67
|
Need to get rid of public.
|
1 week ago |
Zed A. Shaw
|
d9a4c226de
|
No need to auth getting a list of streams, that's public.
|
1 week ago |
Zed A. Shaw
|
3c9a624d66
|
Tracking a possible corruption but that is _overwriting my damn templates with garbage._
|
1 week ago |
Zed A. Shaw
|
7e1a7eb7b4
|
Ignore the config but have an example.
|
1 week ago |
Zed A. Shaw
|
929f755661
|
Example config file.
|
1 week ago |
Zed A. Shaw
|
3bd8d38847
|
Managed to get a simple and NOT SECURE login system going.
|
1 week ago |
Zed A. Shaw
|
75b1eb1edb
|
Public update, these need to be ignored.
|
1 week ago |
Zed A. Shaw
|
23bda88b29
|
Had to make the tests pass for the new page gen.
|
1 week ago |
Zed A. Shaw
|
c64874cb51
|
Can now generate a lot of the static content from templates in pages/ WARNING: I kept seeing page _templates_ getting corrupted on rendering, which is no bueno.
|
2 weeks ago |
Zed A. Shaw
|
7e48768e36
|
Just confirming that pages are not getting mangles.
|
2 weeks ago |
Zed A. Shaw
|
9961915c8c
|
Used the new sitebuild tool to generate stuff.
|
2 weeks ago |
Zed A. Shaw
|
49dc8cf330
|
Needs to be in a dir.
|
2 weeks ago |
Zed A. Shaw
|
3939a54513
|
Testing out the tools/cmd pattern with go get tool
|
2 weeks ago |
Zed A. Shaw
|
f476605ecf
|
Came up with the pages/ directory that's templates which are rendered into public for the static pages.
|
2 weeks ago |
Zed A. Shaw
|
facc691343
|
Hot garbage but that's the idea. It will render only one page.
|
2 weeks ago |
Zed A. Shaw
|
b9d5dbb2e9
|
Tinkering with how to do a 'check view, then static' style of templates, but maybe I need to do a generator?
|
2 weeks ago |
Zed A. Shaw
|
abc9fbda2e
|
Add a registration page.
|
2 weeks ago |
Zed A. Shaw
|
014611a901
|
Make the register/login pages link to eachother.
|
2 weeks ago |
Zed A. Shaw
|
07ff0e6a97
|
Tell air to not watch public, then tell Fiber to not cache public so I can reload it.
|
2 weeks ago |
Zed A. Shaw
|
63fdc06438
|
Use TestMain to setup the database and shut it down after.
|
2 weeks ago |
Zed A. Shaw
|
35d1b06a79
|
Test can now register a user and log in.
|
2 weeks ago |
Zed A. Shaw
|
a22682878c
|
Rename Insert to Exec since it mostly just does that.
|
2 weeks ago |
Zed A. Shaw
|
45c541ee7c
|
User registration now works.
|
3 weeks ago |
Zed A. Shaw
|
eaaf309260
|
Now have a basic auth library for doing bcrypt auth.
|
3 weeks ago |
Zed A. Shaw
|
b0c4144987
|
Can now set an auth cookie to check for auth, but I should see what it takes to make a middleware.
|
3 weeks ago |
Zed A. Shaw
|
05788e5fbb
|
Very simple dumb login that has no password hashing.
|
3 weeks ago |
Zed A. Shaw
|
57d892e35c
|
Panic handler didn't actually work.
|
3 weeks ago |
Zed A. Shaw
|
0c47f02201
|
Abit of refactoring into a more classic layout for an MVC style app.
|
3 weeks ago |
Zed A. Shaw
|
db58b38917
|
Simple test of having a render handler that simply renders files by URL name.
|
3 weeks ago |
Zed A. Shaw
|
0bccddc62c
|
Forgot the tools file
|
3 weeks ago |
Zed A. Shaw
|
db9697130e
|
.\tests\tools.go
|
3 weeks ago |
Zed A. Shaw
|
74edb069d2
|
Cleanup how clicking on a link works for the tests.
|
3 weeks ago |
Zed A. Shaw
|
fecfc8ee84
|
chromedp completely fails to reliably click on links when running in non-headless mode on Windows. About 50% of the time it just hangs thinking it clicked when it didn't. So, on Windows need headless only, and then design tests on Linux where it (maybe) works.
|
3 weeks ago |
Zed A. Shaw
|
bac4472c3a
|
Apparently for 2 weeks (yes 2 whole fucking weeks) I was using NamedExec wrong instead of MustExec so inserts haven't worked since then. Other than that, this is a more cleaned up MVC style setup than before.
|
3 weeks ago |
Zed A. Shaw
|
1785a8e4f5
|
Got the port wrong on the second test.
|
3 weeks ago |
Zed A. Shaw
|
985d0edda3
|
Now just have a base file I can use to start making tests right away.
|
3 weeks ago |
Zed A. Shaw
|
23c6092aa6
|
More coverage report setup.
|
3 weeks ago |
Zed A. Shaw
|
831b5ea762
|
Test can now attempt a login and the browser is shown rather than headless.
|
4 weeks ago |
Zed A. Shaw
|
e29c36fb5c
|
Change the test make to build the runtests but not run it so that I can set a constant security under windows, but messed it up.
|
4 weeks ago |
Zed A. Shaw
|
849943a01e
|
Changed to pkgsite for docs browsing and then refined the chromedp test some to be nicer to write.
|
4 weeks ago |
Zed A. Shaw
|
b28e507e5e
|
Can now run ChromeDP to automate the browser based testing.
|
1 month ago |
Zed A. Shaw
|
81aaffec56
|
Add in a few middlewares I need.
|
1 month ago |
Zed A. Shaw
|
8c04bffa5d
|
A bit more cleanup into an api to use before testing out authentication.
|
1 month ago |
Zed A. Shaw
|
55f59d88b6
|
Sorted out how to do views with Go html/template, how to put code in subdirectories for a namespace, and documented why Go's modules are so weird.
|
1 month ago |
Zed A. Shaw
|
144a76a67a
|
Going to try quicktemplate for some of the site templates.
|
1 month ago |
Zed A. Shaw
|
c5f39b3fa3
|
Can now do basic validations of form submits.
|
1 month ago |
Zed A. Shaw
|
4045799ab9
|
I can now submit a form and store it in the database.
|
1 month ago |