- Code is written in Node.js using Express framework.
- Endpoint handles only HTTP POST requests.
- Application is deployed to Heroku.
- Layered architecture is implemented.
- Error handling is implemented.
- Logging is implemented. (src/logs/..)
- Test is applied.
Use the package manager npm to install project.
git clone https://github.com/getir-nodejs-bootcamp/getir-nodejs-bootcamp-graduation-project-yavuzakin.git
cd getir-nodejs-bootcamp-graduation-project-yavuzakin
npm install
Use the package manager npm to run project.
npm start
Use the package manager npm to test project.
npm test
To run this project, you will need to add the following environment variables to your .env file
MONGODB_URL
, PORT
POST /api/v1/records
Description | Required Body Fields |
---|---|
Returns records filtered by required body fields | startDate , endDate , minCount , maxCount |
Body Fields | Description |
---|---|
startDate |
YYYY-MM-DD format. The earliest date |
endDate |
YYYY-MM-DD format. The latest date |
minCount |
Number. The minimum value |
maxCount |
Number. The maximum value |
https://yavuzakin-getir-task.herokuapp.com
Server: Node, Express
Client: Postman