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

command module
v0.0.0-...-3da7468 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2019 License: MIT Imports: 8 Imported by: 0

README

boilerplate-gorilla-mux-for-rest-api-with-jwt Build Status

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
repository
validators

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL