Skip to content

Latest commit

 

History

History
74 lines (48 loc) · 1.08 KB

README.md

File metadata and controls

74 lines (48 loc) · 1.08 KB

AMON

This is the architecture of AMON NodeJS Test.

Prerequisites

Setup for development:

  • Clone repository
git clone https://github.com/amontech/amon-nodejs-test.git
  • Use nvm to install node
nvm i
  • Install node dependencies
npm i

Test

  • Unit tests
npm run test:unit
  • Start/stop - restart dependencies
docker-compose down && docker-compose -f docker-compose.test.yml up --build db

Run

  • Run dependencies
npm run dependencies
  • Create DB locally
npm run db:create
  • Start api services
npm run service:api

Stop

docker-compose down

Environment

You can set environment variables in the .env file, you can find examples in .env.sample