- Make sure you have the following installed outside the current project directory and available in your
GOPATH
- golang
- air for hot reloading
- godotenv for loading
.env
file
- Clone this repo
- Run
go get
- Type
air
in the command line
# PORT returns the server listening port
# default: 5000
PORT=
# DB returns the name of the sqlite database
# default: gotodo.db
DB=
# TOKENKEY returns the jwt token secret
TOKENKEY=
# TOKENEXP returns the jwt token expiration duration.
# Should be time.ParseDuration string. Source: https://golang.org/pkg/time/#ParseDuration
# default: 10h
TOKENEXP=