This is a simple project to demonstrate implementation of auth using JWT on GoLang and having mysql as database.
- Clone the project
- Set the environment variables in
.envfilePUBLIC_HOST- The host on which the server will runPORT- The port on which the server will runDB_USER- The username of the databaseDB_PASS- The password of the databaseDB_NAME- The name of the databaseDB_ADDR- The host of the database
- Setup database by running
dbsetup.sqlcommands in the database - Run
make runto start the server - Run
make testto run the tests - Run
make buildto build the project