Getir Records API Assessment
RESTful API for fetching records using date and count as filter options.
Getting Started
- You need to have Node.js installed. You can download and install Node.js here
- Install project dependencies by running
npm install
. - Create a
.env
file in the root directory. It should have the following properties:
- PORT
- MONGODB_URI
- NODE_ENV
- Start the application by running
npm start
.
Documentation
A Postman documentation for the API can be accessed here. It contains sample requests and responses, as well as an explanation of the request and response fields.
Tests
This project includes both unit and integration tests. Run the tests by running npm test
. This is a screenshot of the test results: