Grocery-del-application

Grocery Delivery Application

Overview

The Grocery Delivery Application is a full-stack web application that allows users to browse grocery items, add them to their cart, and place orders for delivery. This project demonstrates an end-to-end e-commerce solution with authentication, real-time order tracking, and a user-friendly interface. menu page

signup and login page

cart page

Features

Tech Stack

Frontend:

Backend:

Installation

Prerequisites:

Ensure you have the following installed:

Steps to Run the Project:

  1. Clone the repository:
    git clone https://github.com/shrutim250/Grocery-del-application.git
    cd Grocery-del-application
    
  2. Install dependencies for the backend:
    cd backend
    npm install
    
  3. Install dependencies for the frontend:
    cd ../frontend
    npm install
    
  4. Configure environment variables:
    • Create a .env file in the backend folder and add necessary environment variables (e.g., database URI, JWT secret, etc.)
  5. Start the backend server:
    npm start
    
  6. Start the frontend:
    npm start
    
  7. Open the application in your browser at http://localhost:3000

API Endpoints (Backend)

| Method | Endpoint | Description | |——–|———————|———————————-| | GET | /api/products | Get all grocery products | | POST | /api/auth/signup | User registration | | POST | /api/auth/login | User login | | POST | /api/orders | Place a new order | | GET | /api/orders/:id | Get order details |

Contributing

  1. Fork the repository.
  2. Create a new branch (feature-branch).
  3. Commit your changes.
  4. Push to the branch and create a pull request.

License

This project is licensed under the MIT License. Screenshot 2024-07-16 172255admin page-add itemsadmin page-list

To open the frontend folder use npm run dev To open the backend server use npm run server To open the admin server use npm run dev