Simple demonstration of token authentication and secure user password storage with bcrypt, served by a REST API, built primarily with Go.
- Create a
.env
file, using.env.template
as guide - Ensure you have docker compose installed
make dev
to start all containersmake test
to run api tests (currently expects containers are up)- See http requests in
requests/
folder for testing using an extension like vscode's REST client
- Uses dbmate for database migrations, overkill for this demo, but I wanted to explore the tool
- Uses sqlc library to compile sql in ./db into Go functions in the api library. Run
make sqlc
to compile