A pricing application that features:
- Getting the price of a vehicle using the number plate from cache
- Getting the price of a vehicle using the number plate from a 3rd party provider
- NodeJS + Typescript
- Express
- Jest
- Redis
Prerequisites: Node v12, Redis
- Create your own
.env
file in the root project folder containing the same environment variables as.env.example
and populate it with your values - Run
npm install
to download dependencies - Run
npm run build
to transpile - Run a redis instance in your local
- Run
npm run start
to start the server
Command | Description | Prerequisites |
---|---|---|
npm run test |
Runs all unit tests with a coverage report | - |
npm run build |
Transpile TS to JS | - |
npm run start |
Starts application | .env file is in project root, port 3000 is free |