Service to power a Frontend Web App to track sleep statistics: Functionality:
- CRUD User
- CRUD Sleep
- User authentication
- Password encryptions
- Go
- Gin
- Postgress SQL
- Gorm
- Docker
- Railway: https://railway.app/
https://documenter.getpostman.com/view/22977269/2s8ZDU4P9h
- Install go
- Setup go developer enviroment
- Have a postgress running. You can have it running locally or deployed online. Make sure to have the DB url
- Clone this repo
- Create config.env file in the root of the project, containing this:
- PORT=
- DB_URL=
- API_SECRET=
- TOKEN_LIFE_SPAN=
- On terminal execute:
go run cmd/main.go