Skip to content

keidrun/boilerplate-gorilla-mux-for-rest-api-with-jwt

Repository files navigation

boilerplate-gorilla-mux-for-rest-api-with-jwt Build Status License: MIT

Boilerplate of Gorilla Mux for REST API with JWT

Prerequisite

  • Git installed
  • Docker installed

Let's begin developing

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

Remote debugging with VSCode

1. Run

docker-compose -f docker-compose.debug.yml up --build

2. Connect to Docker in VSCode

Build and Run for production

docker build -t my_app_prod:latest .
docker run --env-file=$PWD/.env my_app_prod:latest

API endpoints

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} -