Skip to content

Coal Ecommerce application is a web-based platform designed to streamline the process of coal product management, customer orders, and administrative control. The application consists of a frontend built with React.js and a backend powered by FastAPI and MongoDB.

Notifications You must be signed in to change notification settings

aryanlikebugs/Coal-Ecommerce-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

CCL - Coal E-Commerce Application

Overview

CCL - Coal Application is a web-based platform designed to streamline the process of coal product management, customer orders, and administrative control. The application consists of a frontend built with React.js and a backend powered by FastAPI and MongoDB.

This project was developed as part of a two-week internship at CCL Darbhanga House, Ranchi.

Features

  • User Authentication: Signup and login functionality with secure authentication.
  • Product Management: Add, view, and delete coal products.
  • Order Placement & Tracking: Customers can place orders, and admins can track all orders.
  • Admin Dashboard: Manage users, products, and view all orders.

Tech Stack

Frontend

  • React.js
  • CSS & JavaScript

Backend

  • FastAPI
  • MongoDB (with Motor async driver)

Backend

  • FastAPI routes for user authentication, product management, and order processing.
  • MongoDB integration for database operations.

Installation & Setup

  1. Clone the repository
   git clone <repo-url>
   cd ccl-logistics-coal
  1. Install dependencies

    • Backend
    pip install -r requirements.txt
    • Frontend
    cd frontend
    npm install
  2. Run the application

    • Backend
    uvicorn main:app --reload
    • Frontend
    npm start

API Endpoints

Endpoint Method Description
/coal-india/sign-up POST User registration
/coal-india/login POST User login
/coal-india/add-product POST Add new coal products
/coal-india/delete-product/{product_id} DELETE Delete a product
/coal-india/get-all-products GET Retrieve all products
/coal-india/place-order POST Place an order
/coal-india/get-orders/{email} GET Retrieve orders for a user
/coal-india/get-allOrders GET Retrieve all orders

About

Coal Ecommerce application is a web-based platform designed to streamline the process of coal product management, customer orders, and administrative control. The application consists of a frontend built with React.js and a backend powered by FastAPI and MongoDB.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published