0.0.1 • Published 3 years ago

talent-acquisition-api v0.0.1

Weekly downloads
-
License
Pulsifi
Repository
-
Last release
3 years ago

Talent API V1

Setup local development environment:

$ npm i -g npm yarn webpack typescript ts-node tslint eslint nodemon

Setup VSCode workspace

  • Clone this repository
  • Open the workspace with VSCode
  • Install the necessary npm packages required by the project
$ yarn install

Setup .env

Setup a '.env' in your workspace

NODE_ENV    = 'development'
DB_HOST     = '<MySQL HOST>'
DB_SCHEMA   = 'talent_acquisition'
DB_USER     = '<MySQL username>'
DB_PASSWORD = '<MySQL password>'

# PULSIFI CONFIGS

SEND_EMAIL          = 'false' # 'true' or 'false'
PULSIFI_API_ALB     = '<ALB url>'
DAXTRA_API_URL      = 'https://cvxdemo.daxtra.com/cvx/rest/api/v1'
DAXTRA_ACCOUNT      = 'API_TEST'

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Swagger Docs

Localhost Swagger

Sample API endpoints

/talent/v1.0/pulse