Skip to content

ashutosh07766/Ecommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zomato Ops Pro

A delivery operations management system for Zomato, built with Spring Boot and React.

Prerequisites

  • Java 17 or higher
  • Node.js 16 or higher
  • Maven
  • npm or yarn

Setup Instructions

1. Clone the Repository

# Clone the repository
git clone https://github.com/yourusername/zomato-ops-pro.git

# Navigate to the project directory
cd zomato-ops-pro

Backend Setup

  1. Navigate to the backend directory:

    cd backend
  2. Build the project:

    mvn clean install
  3. Run the Spring Boot application:

    mvn spring-boot:run

    The backend server will start on http://localhost:8082

Frontend Setup

  1. Navigate to the frontend directory:

    cd frontend
  2. Install dependencies:

    npm install
    # or
    yarn install
  3. Start the development server:

    npm run dev
    # or
    yarn dev

    The frontend will be available at http://localhost:5173

Default Users

The application comes with the following default users:

Manager

  • Username: manager
  • Password: password123

Delivery Partners

  • Username: john

  • Password: password123

  • Username: jane

  • Password: password123

  • Username: mike

  • Password: password123

Features

  • Order Management

    • Create new orders
    • Track order status
    • Assign delivery partners
    • View order history
  • Partner Management

    • View available partners
    • Update partner availability
    • Track partner ETA
  • Dashboard

    • Real-time order tracking
    • Partner status monitoring
    • Order statistics

API Documentation

Database

The application uses H2 database with file-based persistence. The database file is stored in the project root directory as opsprodb.mv.db.

Development

Backend

  • Spring Boot 3.x
  • Spring Security
  • Spring Data JPA
  • H2 Database
  • Maven

Frontend

  • React
  • TypeScript
  • Tailwind CSS
  • React Router
  • Axios

Troubleshooting

  1. If port 8082 is already in use:

    # Find the process using port 8082
    lsof -i :8082
    # Kill the process
    kill -9 <PID>
  2. If you encounter CORS issues:

    • Check if the frontend URL is included in app.cors.allowed-origins in application.properties
    • Ensure the backend is running and accessible
  3. If the database is corrupted:

    • Delete the opsprodb.mv.db file
    • Restart the application to create a fresh database

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages