Backend for the BiteBox recipe sharing application.
The BiteBox backend is a Node.js application that provides API endpoints for managing recipes, user authentication, and other functionalities required by the BiteBox app. The backend uses Express.js for handling HTTP requests and MongoDB for data storage.
- Clone the repository:
git clone https://github.com/M-ayank2005/BiteBoxBackend.git cd BiteBoxBackend
Install the dependencies:
npm install
Create a .env file in the root directory and add your MongoDB URI and other environment variables:
MONGO_URI=your_mongodb_uri PORT=5000
Usage
Start the server:
npm start
The server will run on http://localhost:5000 by default.
API Endpoints
GET /api/recipes - Get all recipes
POST /api/recipes - Create a new recipe
GET /api/recipes/:id - Get a recipe by ID
PUT /api/recipes/:id - Update a recipe by ID
DELETE /api/recipes/:id - Delete a recipe by ID
Contributing
Feel free to contribute to this project by opening issues and submitting pull requests. Please follow the contributing guidelines for more details. License
This project is licensed under the ISC License.
You can customize this content further based on your specific needs.