Commit graph

  • 051474bdc9 Refactor to use plain GoStyleCamelCase instead of json_style_snake_case. main Zed A. Shaw 2025-09-18 15:44:53 -04:00
  • 931c493928 Games now have a page and everything works on multiple size screens, but I need to do a serious refactoring to normalize all data to be Go style. Zed A. Shaw 2025-09-18 14:57:52 -04:00
  • 31b224c6e8 Need to include the images. Zed A. Shaw 2025-09-18 11:32:51 -04:00
  • dcb6376f28 Started the main game display page. Zed A. Shaw 2025-09-17 13:18:13 -04:00
  • f1038d2499 invalid html. Zed A. Shaw 2025-09-17 11:49:19 -04:00
  • 609ca7b363 Have the live page determine if they're logged in and prevent the form until they do. Zed A. Shaw 2025-09-17 11:38:48 -04:00
  • fcb71add03 Add an /api/authcheck and use it to toggle logout/login link on top header. Zed A. Shaw 2025-09-17 11:33:22 -04:00
  • c2123ff741 Remove unused code. Zed A. Shaw 2025-09-17 11:32:58 -04:00
  • a013a26d94 Improved the stream page some more and now going to make the game display page a parody of a steam page. Zed A. Shaw 2025-09-17 01:28:23 -04:00
  • fc99fc955b Live page now looks better, just need to make form submit not reload the page. Zed A. Shaw 2025-09-17 00:30:12 -04:00
  • 29a4957a55 Landing page is looking good, now for the live page. Zed A. Shaw 2025-09-16 23:30:51 -04:00
  • faaa5df187 Typo. Zed A. Shaw 2025-09-16 01:34:44 -04:00
  • 931dbe3f9e Now it works. Thanks to Twitch chat for helping me realize that flex-col changes how justify works because that's so fun. Zed A. Shaw 2025-09-16 01:18:53 -04:00
  • 4b18e24f1b Have the landing page working on mobile/small screens using the oh so intuitive 'sm which actually means bigger than sm so not sm' thing in tailwind. Larger screens are still a problem. Zed A. Shaw 2025-09-16 00:51:55 -04:00
  • a2f9660d81 Landing page is designed now. Zed A. Shaw 2025-09-14 13:33:33 -04:00
  • e1df377eea Upgraded to v0.1.0 of ozai and ssgod. Zed A. Shaw 2025-09-14 12:13:24 -04:00
  • 71ee505717 Migrated to the new go-web-dev-kit setup. Zed A. Shaw 2025-09-13 15:08:19 -04:00
  • 8d70b57299 Brought over most of the changes from go-web-starter-kit. Zed A. Shaw 2025-08-31 11:23:12 -04:00
  • 01fcb964be Created a basic set of tools for making my sites. Zed A. Shaw 2025-08-24 00:53:20 -04:00
  • 3ab3103e84 Just add a main tag and suddenly it's approved? Zed A. Shaw 2025-08-18 21:30:04 -04:00
  • eba11c52ca Created a little landing page for the copies. Zed A. Shaw 2025-08-18 21:15:04 -04:00
  • 79f38995d3 Upgraded to a new ssgod to fix a few things and removed old css. Zed A. Shaw 2025-08-18 20:57:29 -04:00
  • 98b8ee8d49 Wrong directory target. Zed A. Shaw 2025-08-18 19:55:17 -04:00
  • e59ad9f795 Quick way to get the copy project up and working without constantly moving the normal site layout around. Zed A. Shaw 2025-08-18 19:53:03 -04:00
  • 685e227f96 Fix the makefile for deploy on linux. Zed A. Shaw 2025-08-18 19:45:46 -04:00
  • 592e1c4fd8 Finally embedded my twitch stream into the site, now just need to get links posting to work. Zed A. Shaw 2025-08-18 13:56:08 -04:00
  • 26f61eb68b Figured out that SVG is hot garbage and got an icon to work for the home icon. Zed A. Shaw 2025-08-18 11:46:19 -04:00
  • 9707e0e5f6 Move to port 600* so that I don't conflict with my other projects. Zed A. Shaw 2025-08-18 11:46:00 -04:00
  • 2477603190 Fixed up dark mode vs. not and added a linkedin mobil copy. Zed A. Shaw 2025-08-14 00:37:02 -04:00
  • bf1426261d You have to change the ssgod.toml to see these, but here's the copies I did this morning. Zed A. Shaw 2025-08-12 12:55:27 -04:00
  • 25c96a8c3a Bringing in icons to use and the theme turned into gray only. Zed A. Shaw 2025-08-12 12:52:02 -04:00
  • 0b40ef0125 Removed blockstart and replicated it in tailwind's thing. Zed A. Shaw 2025-08-11 15:00:52 -04:00
  • 5da8697759 Fully converted to tailwind now. Zed A. Shaw 2025-08-11 13:56:06 -04:00
  • 8906322b6d A bit of tweaking of the design to learn more about tailwind. Zed A. Shaw 2025-08-10 21:38:34 -04:00
  • 9729ebc7ac Started the tailwind conversion process. Zed A. Shaw 2025-08-10 01:19:30 -04:00
  • ca8f4e194f Need to find out why GODEBUG is ignored. Trying on linux. Zed A. Shaw 2025-08-05 12:31:12 -04:00
  • fd059ad3cf Start bringing in Helix for a twitch bot and have notes on how to use the twitch-cli tool. Zed A. Shaw 2025-08-05 00:34:03 -04:00
  • 55de5155f2 Updated to the new ssgod and have static sync on. Zed A. Shaw 2025-08-04 23:34:45 -04:00
  • d98325564f Updated the layout to have a blockstart for every page so that markdown works. Zed A. Shaw 2025-08-04 23:34:24 -04:00
  • d856784823 Merge branch 'main' of git.learnjsthehardway.com:learn-code-the-hard-way/zedshaw-games Zed A. Shaw 2025-08-04 10:24:23 -04:00
  • c388664c57 Update to use the new ssgod project instead of super-saiyan-god. Zed A. Shaw 2025-08-04 10:24:11 -04:00
  • b47d679d69 Actually that didn't do anything. Zed A. Shaw 2025-08-02 13:57:15 -04:00
  • 7125bc2d2a All the pages are working again, but Alpine is insanely frustrating. Zed A. Shaw 2025-08-02 13:56:39 -04:00
  • 81cf5e0d93 Fix the admin tests but need to use Linux to dev it further. Zed A. Shaw 2025-08-02 11:18:59 -04:00
  • a13d914a88 Getting rid of the jank robocopy so I can write something better with ssg. Zed A. Shaw 2025-08-02 11:18:47 -04:00
  • 19a2a85c10 Started using my super-saiyan-god tool but I need to rework the repo so it supports the tool style for go get. Zed A. Shaw 2025-08-02 10:52:04 -04:00
  • 1da2af82f4 Restrict to only admin users. Zed A. Shaw 2025-07-29 10:39:34 -04:00
  • c29077aa4c Mostly done now, search works. Zed A. Shaw 2025-07-28 03:30:34 -04:00
  • 51b18823ae This gets almost everything done, including Paging, but not search. Zed A. Shaw 2025-07-28 02:16:59 -04:00
  • da183c453c Redirect to table admin on bad table name. Zed A. Shaw 2025-07-27 23:33:28 -04:00
  • 52e92a3814 Almost have pagination working. On the backend it works but I can't figure out how to make alpine do the request and update. Zed A. Shaw 2025-07-27 12:43:15 -04:00
  • c8ece708c3 Remove rsync, not neede. Zed A. Shaw 2025-07-27 12:42:50 -04:00
  • e178ca6733 Now can do all CRUD and just need search and pagination. Zed A. Shaw 2025-07-27 11:22:33 -04:00
  • b0ba0c7e16 Started the insert page but need to take a break to do the final part. Zed A. Shaw 2025-07-27 03:00:21 -04:00
  • ea3b59129f We have delete now. Last thing is insert. Zed A. Shaw 2025-07-27 02:38:08 -04:00
  • 504433502a Now we have a working version without any JS. Way easier to do because javascript form submit blows hot wads. Zed A. Shaw 2025-07-27 01:44:45 -04:00
  • 3fd8169d83 First stab at a form submit off an alpine.js form. Honestly not great. It's a lot of code already for even less functionality. Zed A. Shaw 2025-07-27 00:29:27 -04:00
  • e4153fd74a Created a common.Page function that returns a function to render a page from a view. Zed A. Shaw 2025-07-26 22:44:09 -04:00
  • 1bd733c328 Created a common.Page function that returns a function to render a page from a view. Zed A. Shaw 2025-07-26 22:43:59 -04:00
  • ec7298cce0 Refactor everything that's used all over into a common/ package and sync files from static/ into public/ so that public's not in the git. Zed A. Shaw 2025-07-25 11:35:04 -04:00
  • d12817f4cc I can now list the contents of a table and display a form for one row to update/delete, but haven't implemented update and delete. Zed A. Shaw 2025-07-17 01:20:25 -04:00
  • 2b40d6fdc3 Have a few of the basic admin pages working after switching to the API+View pattern. Zed A. Shaw 2025-07-16 01:06:14 -04:00
  • fa7f886a59 Now have a simple table list index and a table view, but the templates aren't good enough to easily use the Go reflect data. Will find one tomorrow that's better. Zed A. Shaw 2025-07-15 01:36:24 -04:00
  • d481c260c5 Forgot that squirrel needs the =? on Where so switched to using sq.Eq all the time. Zed A. Shaw 2025-07-15 00:10:58 -04:00
  • d59e29fdc1 Now can select by pages and added Insert which I forgot. Zed A. Shaw 2025-07-14 23:31:09 -04:00
  • aa3afa0d21 Have the full CURD operations going, but need pagination. Zed A. Shaw 2025-07-14 14:29:14 -04:00
  • 59a71534ae Finally figured out how to get sqlx to query an object based on a reflect.Type. Zed A. Shaw 2025-07-14 00:52:10 -04:00
  • 859e3ad0e3 Initial setup of an admin page that dynamically reflects the DB to create the CRUD stuff. Zed A. Shaw 2025-07-13 12:28:03 -04:00
  • 02910b8b93 Start the admin panels. Zed A. Shaw 2025-07-13 10:42:15 -04:00
  • 736095a5aa Nicer testing setup with my own interface and methods that abstract away the weird browser API. Zed A. Shaw 2025-07-11 14:34:47 -04:00
  • 77e4c3fa5b I can use the isdefault validator to make sure that a form field doesn't set a data field, but that may not be the best way. Zed A. Shaw 2025-07-11 12:10:45 -04:00
  • de24d64f44 Use http_url in Validator instead of url or else people can inject JavaScript. Zed A. Shaw 2025-07-11 11:11:44 -04:00
  • a3d4a3dc70 Make a little not to use a fake email. Zed A. Shaw 2025-07-10 22:37:32 -04:00
  • ecc264db8c Now easier to write tests for the app, and most pages are at least touched. Zed A. Shaw 2025-07-10 13:06:19 -04:00
  • 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. Zed A. Shaw 2025-07-10 11:46:56 -04:00
  • cb537328ff Small config and my own little lib. Zed A. Shaw 2025-07-10 10:18:43 -04:00
  • a2adf8ad67 Need to get rid of public. Zed A. Shaw 2025-07-06 01:00:15 -04:00
  • d9a4c226de No need to auth getting a list of streams, that's public. Zed A. Shaw 2025-07-06 01:00:01 -04:00
  • 3c9a624d66 Tracking a possible corruption but that is _overwriting my damn templates with garbage._ Zed A. Shaw 2025-07-06 00:59:33 -04:00
  • 7e1a7eb7b4 Ignore the config but have an example. Zed A. Shaw 2025-07-06 00:39:12 -04:00
  • 929f755661 Example config file. Zed A. Shaw 2025-07-06 00:38:35 -04:00
  • 3bd8d38847 Managed to get a simple and NOT SECURE login system going. Zed A. Shaw 2025-07-06 00:38:01 -04:00
  • 75b1eb1edb Public update, these need to be ignored. Zed A. Shaw 2025-07-06 00:37:28 -04:00
  • 23bda88b29 Had to make the tests pass for the new page gen. Zed A. Shaw 2025-07-05 22:19:44 -04:00
  • 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. Zed A. Shaw 2025-07-04 23:59:25 -04:00
  • 7e48768e36 Just confirming that pages are not getting mangles. Zed A. Shaw 2025-07-04 23:22:01 -04:00
  • 9961915c8c Used the new sitebuild tool to generate stuff. Zed A. Shaw 2025-07-04 14:36:24 -04:00
  • 49dc8cf330 Needs to be in a dir. Zed A. Shaw 2025-07-04 13:03:44 -04:00
  • 3939a54513 Testing out the tools/cmd pattern with go get tool Zed A. Shaw 2025-07-04 13:01:12 -04:00
  • f476605ecf Came up with the pages/ directory that's templates which are rendered into public for the static pages. Zed A. Shaw 2025-07-04 11:31:15 -04:00
  • facc691343 Hot garbage but that's the idea. It will render only one page. Zed A. Shaw 2025-07-04 00:43:19 -04:00
  • b9d5dbb2e9 Tinkering with how to do a 'check view, then static' style of templates, but maybe I need to do a generator? Zed A. Shaw 2025-06-29 22:47:03 -04:00
  • abc9fbda2e Add a registration page. Zed A. Shaw 2025-06-29 13:51:02 -04:00
  • 014611a901 Make the register/login pages link to eachother. Zed A. Shaw 2025-06-29 13:42:09 -04:00
  • 07ff0e6a97 Tell air to not watch public, then tell Fiber to not cache public so I can reload it. Zed A. Shaw 2025-06-29 13:41:48 -04:00
  • 63fdc06438 Use TestMain to setup the database and shut it down after. Zed A. Shaw 2025-06-29 13:33:53 -04:00
  • 35d1b06a79 Test can now register a user and log in. Zed A. Shaw 2025-06-29 13:30:40 -04:00
  • a22682878c Rename Insert to Exec since it mostly just does that. Zed A. Shaw 2025-06-29 13:30:24 -04:00
  • 45c541ee7c User registration now works. Zed A. Shaw 2025-06-27 12:37:07 -04:00
  • eaaf309260 Now have a basic auth library for doing bcrypt auth. Zed A. Shaw 2025-06-27 12:02:05 -04:00