https://github.com/nayeem2912/plant_care_server
This is the backend server for the Plant Care web application โ a smart gardening and plant maintenance platform. The backend is built using Node.js, Express, and MongoDB, and is responsible for managing API routes, handling user requests, and storing plant-related data.
https://github.com/nayeem2912/plant_care_server
cors dotenv expressjs javascript mongodb nodejs
Last synced: about 2 months ago
JSON representation
This is the backend server for the Plant Care web application โ a smart gardening and plant maintenance platform. The backend is built using Node.js, Express, and MongoDB, and is responsible for managing API routes, handling user requests, and storing plant-related data.
- Host: GitHub
- URL: https://github.com/nayeem2912/plant_care_server
- Owner: nayeem2912
- Created: 2025-06-25T05:23:37.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-25T05:31:58.000Z (12 months ago)
- Last Synced: 2025-06-25T06:33:54.148Z (12 months ago)
- Topics: cors, dotenv, expressjs, javascript, mongodb, nodejs
- Language: JavaScript
- Homepage: https://plant-care-cb6f6.web.app/
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ฑ Plant Care - Backend Server
This is the backend server for the **Plant Care** web application โ a smart gardening and plant maintenance platform. The backend is built using Node.js, Express, and MongoDB, and is responsible for managing API routes, handling user requests, and storing plant-related data.
---
๐ [Live Website](https://plant-care-cb6f6.web.app/)
๐ [GitHub Repository (Client)](https://github.com/Programming-Hero-Web-Course4/b11a10-client-side-nayeem2912)
๐ [GitHub Repository (Server)](https://github.com/Programming-Hero-Web-Course4/b11a10-server-side-nayeem2912)
---
## โ๏ธ Technologies Used
- **Node.js** โ JavaScript runtime
- **Express.js** โ Backend framework
- **MongoDB** โ NoSQL database for storing plant care data, user info, and orders
- **dotenv** โ Environment variable management
- **CORS** โ Cross-Origin Resource Sharing configuration
---
## ๐งช API Endpoints
| Method | Endpoint | Description |
|--------|-----------------------|----------------------------------|
| GET | `/api/plants` | Get all Plants |
| GET | `/api/plants/:id` | Get a single plant by ID |
| POST | `/api/plants` | Create a new plant |
| PUT | `/api/plants/:id` | Update an existing plant |
| DELETE | `/api/plants/:id` | Delete a Plant |
| GET | `/api/plants/by-user` | Get plants by user |
---