Boilerplate of Gorilla Mux for REST API with JWT
- Git installed
- Docker installed
git clone https://github.com/keidrun/boilerplate-gorilla-mux-for-rest-api-with-jwt.git
cd boilerplate-gorilla-mux-for-rest-api-with-jwt
docker-compose up --build
docker-compose -f docker-compose.debug.yml up --build
docker build -t my_app_prod:latest .
docker run --env-file=$PWD/.env my_app_prod:latest
Method | URI | Data |
---|---|---|
POST | /signup | email,password,name,age,gender |
POST | /login | email,password |
POST | /api/users | email,password,name,age,gender |
GET | /api/users | - |
GET | /api/users/{id} | - |
PUT | /api/users/{id} | email,password,name,age,gender |
DELETE | /api/users/{id} | - |