Commit graph

54 commits

Author SHA1 Message Date
Zed A. Shaw
929f755661 Example config file. 2025-07-06 00:38:35 -04:00
Zed A. Shaw
3bd8d38847 Managed to get a simple and NOT SECURE login system going. 2025-07-06 00:38:01 -04:00
Zed A. Shaw
75b1eb1edb Public update, these need to be ignored. 2025-07-06 00:37:28 -04:00
Zed A. Shaw
23bda88b29 Had to make the tests pass for the new page gen. 2025-07-05 22:19:44 -04:00
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. 2025-07-04 23:59:25 -04:00
Zed A. Shaw
7e48768e36 Just confirming that pages are not getting mangles. 2025-07-04 23:22:01 -04:00
Zed A. Shaw
9961915c8c Used the new sitebuild tool to generate stuff. 2025-07-04 14:36:24 -04:00
Zed A. Shaw
49dc8cf330 Needs to be in a dir. 2025-07-04 13:03:44 -04:00
Zed A. Shaw
3939a54513 Testing out the tools/cmd pattern with go get tool 2025-07-04 13:01:12 -04:00
Zed A. Shaw
f476605ecf Came up with the pages/ directory that's templates which are rendered into public for the static pages. 2025-07-04 11:31:15 -04:00
Zed A. Shaw
facc691343 Hot garbage but that's the idea. It will render only one page. 2025-07-04 00:43:19 -04:00
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? 2025-06-29 22:47:03 -04:00
Zed A. Shaw
abc9fbda2e Add a registration page. 2025-06-29 13:51:02 -04:00
Zed A. Shaw
014611a901 Make the register/login pages link to eachother. 2025-06-29 13:42:09 -04:00
Zed A. Shaw
07ff0e6a97 Tell air to not watch public, then tell Fiber to not cache public so I can reload it. 2025-06-29 13:41:48 -04:00
Zed A. Shaw
63fdc06438 Use TestMain to setup the database and shut it down after. 2025-06-29 13:33:53 -04:00
Zed A. Shaw
35d1b06a79 Test can now register a user and log in. 2025-06-29 13:30:40 -04:00
Zed A. Shaw
a22682878c Rename Insert to Exec since it mostly just does that. 2025-06-29 13:30:24 -04:00
Zed A. Shaw
45c541ee7c User registration now works. 2025-06-27 12:37:07 -04:00
Zed A. Shaw
eaaf309260 Now have a basic auth library for doing bcrypt auth. 2025-06-27 12:02:05 -04:00
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. 2025-06-26 16:50:22 -04:00
Zed A. Shaw
05788e5fbb Very simple dumb login that has no password hashing. 2025-06-25 01:25:00 -04:00
Zed A. Shaw
57d892e35c Panic handler didn't actually work. 2025-06-25 00:00:37 -04:00
Zed A. Shaw
0c47f02201 Abit of refactoring into a more classic layout for an MVC style app. 2025-06-24 23:55:38 -04:00
Zed A. Shaw
db58b38917 Simple test of having a render handler that simply renders files by URL name. 2025-06-24 14:46:05 -04:00
Zed A. Shaw
0bccddc62c Forgot the tools file 2025-06-24 14:45:39 -04:00
Zed A. Shaw
db9697130e .\tests\tools.go 2025-06-24 14:24:29 -04:00
Zed A. Shaw
74edb069d2 Cleanup how clicking on a link works for the tests. 2025-06-24 14:14:39 -04:00
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. 2025-06-23 13:08:25 -04:00
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. 2025-06-22 02:48:02 -04:00
Zed A. Shaw
1785a8e4f5 Got the port wrong on the second test. 2025-06-21 23:36:41 -04:00
Zed A. Shaw
985d0edda3 Now just have a base file I can use to start making tests right away. 2025-06-21 22:51:21 -04:00
Zed A. Shaw
23c6092aa6 More coverage report setup. 2025-06-21 22:46:37 -04:00
Zed A. Shaw
831b5ea762 Test can now attempt a login and the browser is shown rather than headless. 2025-06-18 06:54:59 -04:00
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. 2025-06-18 04:53:33 -04:00
Zed A. Shaw
849943a01e Changed to pkgsite for docs browsing and then refined the chromedp test some to be nicer to write. 2025-06-17 02:23:23 -04:00
Zed A. Shaw
b28e507e5e Can now run ChromeDP to automate the browser based testing. 2025-06-15 01:21:42 -04:00
Zed A. Shaw
81aaffec56 Add in a few middlewares I need. 2025-06-09 00:57:19 -04:00
Zed A. Shaw
8c04bffa5d A bit more cleanup into an api to use before testing out authentication. 2025-06-09 00:37:56 -04:00
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. 2025-06-06 13:12:38 -04:00
Zed A. Shaw
144a76a67a Going to try quicktemplate for some of the site templates. 2025-06-04 00:59:54 -04:00
Zed A. Shaw
c5f39b3fa3 Can now do basic validations of form submits. 2025-06-04 00:24:59 -04:00
Zed A. Shaw
4045799ab9 I can now submit a form and store it in the database. 2025-06-03 23:25:29 -04:00
Zed A. Shaw
eaaab2ac0b Add air's proxy auto page reload features. 2025-06-03 15:19:25 -04:00
Zed A. Shaw
d015a8ce93 Added Air to the project to get automatic restarts. 2025-06-03 15:08:19 -04:00
Zed A. Shaw
5a1c71677f Install godoc for great docs goodness. 2025-06-03 14:50:59 -04:00
Zed A. Shaw
6098995318 Add a little Makefile for vim. 2025-06-03 14:50:51 -04:00
Zed A. Shaw
c576a61fbe Have a mostly working API server in go that's talking to streams/index.html and related pages. 2025-05-31 14:12:08 -04:00
Zed A. Shaw
d49e1fbdc0 More testing of the sqlx and squirrel database system, then added in goose for migrations. Pretty close to making a first version api. 2025-05-31 00:10:22 -04:00
Zed A. Shaw
07fa59c8e7 Basic API kind of worked out and solved a bunch of things with alpine.js 2025-05-28 16:40:54 -04:00