aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-01-25update hooks to more identifiable names, update migrations to work with ↵HEADtrunkAlexander Kavon
votes, use a common enum state type
2024-01-24finalize votes table columns with nullable foreign keys and unique indexAlexander Kavon
2024-01-24add make run and make build commandsAlexander Kavon
2024-01-24remove .sql.sql file extension for migration files, drop type enum on ↵Alexander Kavon
migrate down
2024-01-23add new seed command, use Makefile for migrations before seedAlexander Kavon
2024-01-23seed package to seed database on the flyAlexander Kavon
2024-01-23move ui templates into src, update conf to handle other paths, export User ↵Alexander Kavon
Insert Hooks
2024-01-23new tables: tags, post_tags, generated sqlboiler tags model, updated ↵Alexander Kavon
posts/get template, updated posts table to take nullable description and user_id foreign key
2024-01-22ui post/get and ui comments templates, more base templatingAlexander Kavon
2024-01-22ui post/get and ui comments templatesAlexander Kavon
2024-01-22add posts table migration, add sqlboiler post model, post routes: create, ↵Alexander Kavon
store, get, post create ui template, remove email from user create route
2024-01-22remove unneccessary Request.ParseForm() calls and update password ↵Alexander Kavon
placeholder on user create/auth pages
2024-01-22clean-up secret hashing codeAlexander Kavon
2024-01-22add code source urlAlexander Kavon
2024-01-22only return error for compareSecretToHash, update login formAlexander Kavon
2024-01-22added login authentication route logic, added compareSecretToHash, ↵Alexander Kavon
decodeHash, hashArgon2, renamed HashSecret to hashSecret
2024-01-22add missing semicolon, update email field to optionalAlexander Kavon
2024-01-22initial errres struct work for API err responses (needs work)Alexander Kavon
2024-01-22update hooks to use HashSecretAlexander Kavon
2024-01-22added validation for user fields on sqlboiler.BeforeInsertHook, added ↵Alexander Kavon
hashing of secret before insert
2024-01-22rebuild commands, update postgres port to standard 5432Alexander Kavon
2024-01-22update db adapter, server, routes, and user model to be sqlboiler compatibleAlexander Kavon
2024-01-22sqlboiler and generated modelsAlexander Kavon
2024-01-22updated migrations (added rollback for function), lowered varchar to 255 ↵Alexander Kavon
length, updated packages, make dev, make halt commands for container management
2023-12-01settled on map[string]interface{} for passing data to view, automatically ↵Alexander Kavon
append session struct, fixed nil session checks, updated templates to use map variable names
2023-11-30fixed login/create templates to point to correct endpoints, updated func ↵Alexander Kavon
names to be more idiomatic, reference Session objects to save memory, logout/session.Destroy method
2023-11-30setup routes to use middlewares properlyAlexander Kavon
2023-11-30setup user show route to use sessionAlexander Kavon
2023-11-30properly check value in session middlewhere and reverse rulesAlexander Kavon
2023-11-30adjusted session store to only require library and returnable session objectAlexander Kavon
2023-11-30initial sessions support via sessions pkg, includes session middleware for ↵Alexander Kavon
setting sessions, guest sessions, method to return array of middlewares
2023-11-29remove direnv support, use MakefileAlexander Kavon
2023-11-29pass DbValues and convert to pgx.NamedArgs in db.go to save an importAlexander Kavon
2023-11-29user create/insert into users table, pgxpool defer moved to top of app, ↵Alexander Kavon
me.tmpl.html, secret hashing with argon2id, updated migrations
2023-11-28ui render templates simplifyAlexander Kavon
2023-11-28add database connections, user model insertAlexander Kavon
2023-11-28added migrations via tern, updated db package to connect to pgsql db, ↵Alexander Kavon
updated config to build db connection string, updated example .newsstand.toml config, new pgx dependency
2023-11-28working container compose w/database, no more auth package, message template ↵Alexander Kavon
partial, working html template writing, auth routes in user/routes.go
2023-11-28build ui and render templates, build routesAlexander Kavon
2023-11-27templates renamed as ui, initial funcs for render and building templates/uiAlexander Kavon
2023-11-27resolvePath function for future path resolution in conf struct buildingAlexander Kavon
2023-11-27template files for registration page, updated cwd handling, included cwd and ↵Alexander Kavon
config file path in conf struct
2023-11-27config updates, rename user model, load auth routes, initial templating pocAlexander Kavon
2023-11-15expose ports on host and ocntainerAlexander Kavon
2023-11-15container env for developmentAlexander Kavon
2023-11-15use proper func for new dbAlexander Kavon
2023-11-14db skeletonAlexander Kavon
2023-11-14router types; pass config, routes, db to server type, serve funcAlexander Kavon
2023-11-14new packages for users, posts, serverAlexander Kavon
2023-11-13scaffoldingAlexander Kavon