Tokenization service.
- Install the dependencies with
npm install
- Run the docker-compose up debug option with
docker-compose -f "docker-compose.mongodb-test.yml" up -d --build
to up mongodb database - Run the application in development mode with
npm run dev
- Access
https://localhost:3000
and you're ready to go!
- Make sure your have the docker engine installed with
docker info
- Run the docker-compose up debug option with
docker-compose -f "docker-compose.debug.yml" up -d --build
- Access
https://localhost:3000
and you're ready to go!
- Uncomment vault-ms service in
docker-compose.debug.yml
and comment json-server-mock in same file. - Run
docker-compose -f "docker-compose.debug.yml" up -d --build
- Run
docker ps -a
and clip containerId from vault service - Run
docker exec -it <containerId> /bin/sh
(if using windows, exec:docker exec -it <container-id-vault> sh
into "C:/Program Files/Git/usr/bin/" folder) - Run
/vault/config/setup.sh
Docs (Swagger/OAS 3.0) are at http://localhost:[PORT]/api/docs
This boilerplate comes with a collection of npm scripts to make your life easier, you'll run them with npm run <script name>
:
dev
: Run the application in development modestart
Run the application in production mode (prefer not to do that in development)test
: Run the test suitetest:unit
: Run only the unit teststest:features
: Run only the features teststest:integration
: Run only the integration tests (before run npm i -g newman to install newman)coverage
: Run only the unit tests and generate code coverage for them, the output will be oncoverage
folderlint
: Lint the codebase