Skip to content

Delivery and Order handler router use express help handling order form and booking table for ui idea use 2nd url (thanks Rahul) for frontend project needs

Notifications You must be signed in to change notification settings

Roushan-kr/backnd_delivery

Repository files navigation

MERN Delivery Starter

🚀 MERN Delivery Starter – A Node.js, Express, and MongoDB-based API for managing restaurant orders, delivery notes, and delivery lists. This serves as a foundational template for any MERN-based delivery application.

Features

  • 📦 Order Management – Accept, update, and track restaurant orders.
  • 🚚 Delivery Notes – Attach special instructions for deliveries.
  • 📋 Delivery List – Manage assigned deliveries and status updates.
  • 🔌 RESTful API – Well-structured endpoints for easy frontend integration.
  • 🛠 Mongoose ODM – Simplified MongoDB interactions.
  • 📜 Modular Codebase – Ready for customization and expansion.

Installation

# Clone the repository
git clone https://github.com/yourusername/mern-delivery-starter.git

# Navigate to the project folder
cd mern-delivery-starter

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env
# Update .env with your MongoDB URI and other configurations

# Start the server
npm run dev

API Endpoints

Orders

  • POST /api/orders – Create a new order.
  • GET /api/orders – Retrieve all orders.
  • GET /api/orders/:id – Get order details by ID.
  • PUT /api/orders/:id – Update an order.
  • DELETE /api/orders/:id – Delete an order.

Delivery Notes

  • POST /api/delivery – Add delivery with note notes.
  • GET /api/delivery – Get all delivery with notes.

Delivery List

  • GET /api/deliveries – View all deliveries.
  • PUT /api/deliveries/:id – Update delivery status.

Tech Stack

  • Backend: Node.js, Express.js
  • Database: MongoDB, Mongoose
  • Auth (Optional): JWT Authentication
  • Dev Tools: Nodemon, dotenv, Prettier

Contribution

Feel free to fork and contribute! Open an issue or submit a PR to enhance the project.

License

MIT License

About

Delivery and Order handler router use express help handling order form and booking table for ui idea use 2nd url (thanks Rahul) for frontend project needs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published