A RESTful API for todo application with Go
https://go-todo-miftahulhdyt.herokuapp.com/swagger/index.html
# Download this project
go get github.com/miftahulhidayati/go-todo
Before running API server, you should set the postgre database config, and JWT Secrets with yours on .env
DB_NAME =
DB_PASS =
DB_HOST =
DB_PORT =
DB_USER =
JWT_SECRET =
# Run
cd go-todo
go run main.go
./go-todo
- JWT GO "github.com/dgrijalva/jwt-go"
- GIN "github.com/gin-gonic/gin"
- swaggerFiles "github.com/swaggo/files"
- ginSwagger "github.com/swaggo/gin-swagger"
- GIN CORS "github.com/gin-contrib/cors"
- GIN SESSIONS "github.com/gin-contrib/sessions" "github.com/gin-contrib/sessions/cookie"
- GORM "gorm.io/gorm"
Miftahul Hidayati - miftahulhdyt@outlook.com