This API provides endpoint to retrieve information about movie producers with the longest and shortest intervals between consecutive awards. The system utilizes an in-memory database powered by SQLite, offering lightweight and efficient data storage directly within the application.
Before proceeding with the installation, make sure you have Node.js and npm (Node Package Manager) installed on your system.
- Clone the repository:
git clone https://github.com/msalvatti/raspberry-awards-api.git
- Navigate to the project directory:
cd raspberry-awards-api
- Install dependencies:
npm install
The project utilizes environment variables for sensitive data and configuration. Create a .env
file in the root directory of the project with the following variables. Use the file .env.example for reference:
# The backend PORT
PORT=3001
To start the server, run the following command:
npm start
This will start the Express server at http://localhost:3001
.
- URL:
/awards/intervals
- Method: GET
- Description: Returns information about movie producers with the longest and shortest intervals between consecutive awards.
Integration tests are implemented using Jest and Supertest. To run the tests, use the following command:
npm test
Contributions are welcome! If you find any issues or want to suggest enhancements, please open an issue or create a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.