Simple backend REST API with auth written in Go.
(It shows password hash and salt only for testing purposes, to make sure everything's working)
Features:
- SQLite database
- Secure auth (passwords encrypted and salted)
- User sessions (in-memory session store)
- Basic html dashboard
Libraries/packages used:
- ORM: GORM
- Web Framework: Gin
- Session middleware: Gorilla Sessions
- CSS Framework: Tailwind
- JS Framework: Alpine
How to use:
- clone
npm install
npm run build
to generate css with Tailwind and Postcsscd src
andgo run .
to start server