brunoferreiras / jobsity-challenge-node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stock - Node.js Challenge

Gettings Started

It's need to install in your computer: Docker: 18.06.0+ Docker-compose: 1.27.0+

Framework / Tools

Start project

// Create the .env file to api-service
cp ./api-service/.env.example ./api-service/.env
// Start all containers docker
make up
// It's everything!

You can access the services:

Postman Collection

You can use the postman collection in docs/stock-quote.postman_collection.json

Stock Service (Internal)

This service is running in http://localhost:3041.

The Swagger docs is running in http://localhost:3041/docs/api.

You can execute some commands:

// Enter in container docker
make bash-stock
### Inside on container
yarn test // Running all the unit/feature tests
yarn test:cov // Running the coverage code. Output is ./coverage
yarn test:e2e // Running the end-to-end tests.

Api Service (External)

This service is running in http://localhost:3040.

The Swagger docs is running in http://localhost:3040/docs/api.

You can execute some commands:

// Enter in container docker
make bash-api
### Inside on container
yarn test // Running all the unit/feature tests
yarn test:cov // Running the coverage code. Output is ./coverage

Mailhog

This service is running in http://localhost:8025. It's responsible to can see the emails when using the recover password.

About


Languages

Language:TypeScript 93.9%Language:JavaScript 2.3%Language:Makefile 1.8%Language:Dockerfile 1.5%Language:Shell 0.4%Language:Handlebars 0.1%