# README
Shippy User Service
How to run locally
- Run postgres database:
docker run -d -p 5432:5432 postgres
- Build & run:
make build && make run
- Run NATS:
docker run -d -p 4222:4222 nats
- (optional) API gateway:
docker pull microhq/micro
Run user service & email service
- Run user service locally
- For email service run GitHub shippy-email-service:
make build && make run
Test user service & email service
- Run user service locally
- Run email service locally
- Build & run user CLI GitHub shippy-user-cli:
make build && make run
Run API gateway (microhq/micro) & test service
- docker run -p 8080:8080 -e MICRO_REGISTRY=mdns microhq/micro api --handler=rpc --address=:8080 --namespace=shippy
- curl -XPOST -H 'Content-Type: application/json' -d '{ "service": "shippy.auth", "method": "Auth.Create", "request": {"email": "[email protected]", "password": "testing123", "name": "Ewan Valentine", "company": "BBC" } }' http://localhost:8080/rpc
- curl -XPOST -H 'Content-Type: application/json' -d '{ "service": "shippy.auth", "method": "Auth.Auth", "request": { "email": "[email protected]", "password": "testing123" } }' http://localhost:8080/rpc
# Packages
No description provided by the author
# Functions
No description provided by the author
# Structs
CustomClaims is our custom metadata, which will be hashed and sent as the second segment in our JWT.
No description provided by the author
No description provided by the author