GoLighter is a lightweight API boilerplate, built with a user system and authentication.
- User management
- Authentication
- Authorization
- Flag-based access control
- JWT-based authentication
- PostgreSQL Database
- Redis Caching
go run main.goand then run the migrations in migrations/ folder.
To run tests, make sure to activate the testing database first (in a seperate db from production, and already have migrations). Run the following command to recursively run tests.
go run ./...
# or with a verbose output
go run -v ./...Or additionally, you can use tparse:
set -o pipefail && go test -json ./... | tparse -all # linux
go test -json ./... | tparse -all # windows