This houses the backend of psypay.
yarn prepare
yarn
docker-compose build
docker-compose up -d
MONGODB_URI="mongodb://admin:password@mongodb:27017/psypay-db?authMechanism=DEFAULT&authSource=admin"
DATABASE_NAME="psypay-db"
Install MongoDB Compass on your local machine and connect the dockerized mongodb instance for your LOCAL dev simulations. Connection string:
mongodb://admin:password@localhost:27017/psypay-db?replicaSet=rs0&authSource=admin&directConnection=true
Swagger: http://localhost:8000/documentation/static/index.html
ex. GET http://localhost:8000/v1/users
curl --location 'http://localhost:8000/v1/users'
Latest changes in DB schema validation are applied every new build. See migrate-mongo.
yarn migrate-up
yarn migrate-down
yarn migrate-create
yarn lint
yarn commit