0.0.6 • Published 2 years ago
till-auth v0.0.6
Till Auth
Prerequisites
- You need to have
NPM_TOKEN
and AWS environment variables ready. - You need to run
till-admin
before running till-auth.
Installation
$ yarn install
Set Up Steps
- In project root, run
export NPM_TOKEN = your npm token
export AWS_ACCESS_KEY_ID = your aws access key id
export AWS_SECRET_ACCESS_KEY = your aws secret access key
export AWS_SESSION_TOKEN = your aws session token
- Create a file called
.env
in your project root directory and paste this in:
DB_HOST=localhost
DB_PORT=5430
DB_USERNAME=tillAuth
DB_PASSWORD=password
DB_DATABASE=tillAuth
DB_NAME=tillAuth
AWS_REGION="ap-southeast-2"
PORT=3060
ADMIN_SERVICE_PORT=3061
ADMIN_SERVICE_HOST=localhost
- Run Docker
docker-compose up
Start till-auth
# development
$ yarn run start:dev