A backend API designed for managing and sharing random ideas with CRUD operations.
Random Ideas is a RESTful API built using Node.js, Express.js, and MongoDB Atlas. The API facilitates the management of ideas and user data with endpoints for creating, reading, updating, and deleting resources.
- Node.js: Runtime environment for building the backend.
- Express.js: Framework for API development.
- MongoDB Atlas: Cloud-based NoSQL database for storing ideas and user data.
- Endpoint:
/api/ideas - CRUD Operations:
- GET
/api/ideas: Retrieve all ideas. - POST
/api/ideas: Create a new idea. - PUT
/api/ideas/:id: Update an existing idea by ID. - DELETE
/api/ideas/:id: Delete an idea by ID.
- GET
- Endpoint:
/api/users - CRUD Operations:
- GET
/api/users: Retrieve all users. - POST
/api/users: Register a new user. - PUT
/api/users/:id: Update user details by ID. - DELETE
/api/users/:id: Delete a user by ID.
- GET
The project is built on the CRUD (Create, Read, Update, Delete) methodology to handle the following resources:
- Ideas
- Users
Follow these steps to set up and run the backend server:
- Install Dependencies
Navigate to the project directory and run:npm install