lf-achyutpkl / test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backbone Auth Service

Backbone Auth Service.

Installation

Clone the repository, install the dependencies and get started right away. Make sure you already have nodejs, npm and yarn installed in your system.

$ yarn

Configuration

Create a .env file for application specific environment variables and update it according to your database & env specific params.

$ cp .env.example .env

Migrations & Seeding

You'll need to run migrations to get your database ready.

# Run Migrations and seeds
$ yarn migrate

Local Development

Run the server locally using nodemon on typescript watch mode.

$ yarn start # or npm start

Production

First, build the application.

$ yarn build # or npm run build

Then, use pm2 to start the application as a service.

$ yarn service:start # or npm run service:start

Testing

Running all tests.

# Running all tests.
$ yarn test

# Running all tests in watch mode.
$ yarn test:watch

Running all API tests (Acceptance Tests).

$ yarn test:api

Running all Unit Tests.

$ yarn test:unit

About


Languages

Language:TypeScript 96.5%Language:JavaScript 3.5%