/asb_test

Primary LanguageJavaScript

ASB Backend Developer Test

ASB Backend Developer Test

Installation

npm install

Start the app

node app.js

Seeding the Db

sequelize db:seed:all

Documentation

 http:{your ip address}:{your port}/api-docs

Testing

npm run test
npm run testRoute (End to end)
npm run testController

Sample .env file

DEV_DATABASE_URL=postgres://postgres: @127.0.0.1/adb_test
TEST_DATABASE_URL=postgres://postgres: @127.0.0.1/adb_test
IP="127.0.0.1"
PORT=8080
DB="adb_test"
DB_USER=postgres
DB_PASSWORD="' '"