API was designed and developed to enhance the functionality of "Concerts Database", a web application dedicated to preserving memories of concerts attended. By seamlessly integrating with the platform, this API empowers Concerts Database to deliver dynamic content and interactive features.
- Clone this repository.
- Run npm install to install all dependencies
- Create a .env file in your project root folder and add variables. See .env.sample for assistance.
- Run npm run dev to start the application.
- Connect to the API using Postman or Insomnia on local port 4000.
- Connect to the API using a web browser on (https://concert-database-api.onrender.com/) address.
| HTTP Methods | Endpoints | Action |
|---|---|---|
| GET | /concerts/all | To retrieve all concerts on the platform |
| GET | /concerts/:id | To retrieve details of a single concert |
| POST | /concerts/add | To create a new concert |
| PUT | /concerts/edit/:id | To edit the details of a single concert |
| DELETE | /concerts/delete/:id | To delete a single concert |
- NodeJS This is a cross-platform runtime environment built on Chrome's V8 JavaScript engine used in running JavaScript codes on the server. It allows for the installation and management of dependencies and communication with databases.
- ExpressJS This is a NodeJS web application framework.
- MongoDB This is a free open-source NoSQL document database with scalability and flexibility. Data are stored in flexible JSON-like documents.
- Mongoose ODM This makes it easy to write MongoDB validation by providing a straightforward, schema-based solution to model application data.