go-jwt was made to practice creating an http server in Go with JSON Web Tokens. You can create a user, login, and visit a protected route. Requires postgres.
go-jwt requires environment variables to run a POSTGRES database: POSTGRES_HOST
, POSTGRES_DB_PORT
, POSTGRES_USER
, POSTGRES_DB_NAME
, and DB_PASSWORD
. Once set run go run main.go
to start.