Repositories

Installation

make init
make bootstrap
make proto

Running the app

# development
make server

Test

Register User

curl -X POST \
  http://localhost:8080/v1/auth/register \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "mitch@murphy.com",
  "password": "password"
}'

This should return a 201 status code.

Login User

curl -X POST \
  http://localhost:8080/v1/auth/login \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "mitch@murphy.com",
  "password": "password"
}'

This should return a payload with:

{
  "status": 200,
  "token": "eyj..."
}