The NodeJs server to get Stock and Transaction Information.
The project has been built with NodeJs javascript runtime environment and ExpressJs NodeJs web application framework. To get a detailed knowledge, visit NodeJs and ExpressJs website.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
To be able to run the project on your local machine, you will need following development tools on your local machine.
- NodeJs javascript runtime environment with version 12 and above.
- yarn package manager.
- Docker To run applications in dockerised container
Run node -v
and yarn -v
to check, whether your local machine has configured properly to run the project.
Clone main and cd into the project root directory
git clone [email protected]:ranjith-jagadeesh/plt.git
cd plt
Install all packages
yarn install
To build and run docker image
yarn docker-up
Once the project is up and running, use the below endpoint to verify
http://localhost:3000/?sku=SXV420098/71/68
Jest and Supertest framework to test and verify requests
yarn test
The application is built on following Tech Stack
Web Framework - Express
Test Framework - Jest, Supertest
Logging Requests - Morgan (Logging of all Express requests in a standardised format)