Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saagor16/veggify-recipe-backend
This repository contains the backend code for the Veggify Recipe application. It provides API endpoints for managing items, categories, and other related functionalities.
https://github.com/saagor16/veggify-recipe-backend
core dotenv expressjs firebase mongodb mongoose nodemon
Last synced: 5 days ago
JSON representation
This repository contains the backend code for the Veggify Recipe application. It provides API endpoints for managing items, categories, and other related functionalities.
- Host: GitHub
- URL: https://github.com/saagor16/veggify-recipe-backend
- Owner: saagor16
- Created: 2024-12-05T05:04:28.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-20T05:18:07.000Z (about 2 months ago)
- Last Synced: 2024-12-20T06:23:07.482Z (about 2 months ago)
- Topics: core, dotenv, expressjs, firebase, mongodb, mongoose, nodemon
- Language: JavaScript
- Homepage: https://veggify-recipe-backend.vercel.app
- Size: 3.69 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Veggify Recipe Backend
This repository contains the backend code for the Veggify Recipe application. It provides API endpoints for managing items, categories, and other related functionalities.
## Live Links
- **Frontend Live URL**: [Veggify Recipe Frontend](https://veggify-recipe-fontend.vercel.app/)
- **Backend Live URL**: [Veggify Recipe Backend](https://veggify-recipe-backend.vercel.app/)
- **GitHub Repository**:
- [Frontend Repository](https://github.com/saagor16/Veggify-Recipe-Fontend)
- [Backend Repository](https://github.com/saagor16/Veggify-Recipe-Backend)---
## Features
- **API Endpoints**:
- `GET /api/all-items` - Fetch all items.
- `GET /api/categories` - Fetch all categories.
- `GET /api/items/:id` - Fetch a single item by ID.
- **Database Integration**:
- Connected to MongoDB Atlas.
- **Data Models**:
- Item Model.
- Category Model.## Technologies Used
- **Backend Framework**: Express.js
- **Database**: MongoDB Atlas
- **Authentication**: firebase
- **Environment Variables**: dotenv
- **Cross-Origin Resource Sharing**: cors
- **Server Deployment**: Vercel---
## Installation & Setup
1. Clone the repository:
```bash
git clone https://github.com/saagor16/Veggify-Recipe-Backend
cd veggify-recipe-backend
```
2. Install dependencies:
```bash
npm install
```
3. Create a `.env` file with the following variables:
```env
PORT=5000
MONGODB_URI=mongodb+srv://:@veggify-recipe-react.mongodb.net/?retryWrites=true&w=majority
```
4. Start the server:
```bash
npm start
```---
## API Documentation
### Base URL
```
https://veggify-recipe-backend.vercel.app/
```### Endpoints
#### Items
- `GET /all-items`
- `GET /items/:id`#### Categories
- `GET /categories`---
## Contribution
Feel free to fork this repository and make pull requests.---
## Author
- **Sagor**
- [GitHub](https://github.com/saagor16)
- [LinkedIn](https://www.linkedin.com/in/saagor/)