This project is a wrapper API for The Cocktail DB, providing functionality to paginate and filter cocktail data. The API is built using NodeJS and Express and integrates with The Cocktail DB's API.
- Pagination of cocktail data.
- Filtering based on ingredients.
- Node.js
- npm (Node package manager)
To get the project up and running on your local machine, follow these steps:
- Clone the repository:
git clone https://github.com/cnf2500/Cocktail_API.git
- Navigate to the project directory:
cd Cocktail_API - Install dependencies:
npm install
To start the server, run the following command:
npm runThe API can then be accessed at http://localhost:3000.
GET /cocktails: Retrieves a list of cocktails.
Query parameters:
page: Specify which page of results to retrieve.limit: The number of results per page.
To run the test suite, execute:
npm testIf you wish to contribute to this project, please create a pull request with your proposed changes.
This wrapper API is built for educational purposes as part of a technical interview project.