0.0.6 • Published 2 years ago

till-auth v0.0.6

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
2 years ago

Till Auth

Prerequisites

  1. You need to have NPM_TOKEN and AWS environment variables ready.
  2. You need to run till-admin before running till-auth.

Installation

$ yarn install

Set Up Steps

  1. 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
  1. Create a file called .envin 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
  1. Run Docker
docker-compose up

Start till-auth

# development
$ yarn run start:dev