This is a simple lecture app backend built with Node.js and MongoDB, providing API endpoints to manage lecture data.
- Retrieve all items in a collection
- Add an item to a collection
- Update an item in a collection
- Search for items in a collection
- Node.js
- Express.js
- MongoDB
- Mongoose
- Cors
- Morgan
To get started with this project, follow these steps:
-
Clone this repository
-
Install dependencies
-
Create a
.env
file in the root directory and add your MongoDB URI: -
See the LectureApp.lectues.json file to see structure of Database
-
Start ther server
- GET /collections/:collectionName: Retrieve all items in a collection.
- POST /collections/:collectionName: Add an item to a collection.
- PUT /collections/:collectionName/:id: Update an item in a collection.
- GET /collections/:collectionName/search/:searchWord: Search for items in a collection.