Skip to content

Utsav-exe/E-Commerce-Backend-REST-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

E-Commerce Backend REST API

A robust, scalable RESTful API designed to power the backend operations of an e-commerce platform. Built with a modular architecture, this project ensures secure data handling, efficient database queries, and reliable order processing.

Tech Stack

  • Runtime: Node.js
  • Framework: Express.js
  • Database: PostgreSQL
  • Version Control: Git

Key Features

  • Secure User Authentication: Implementation of secure login and registration workflows (e.g., JWT, password hashing) to protect user data.
  • Product Management: Complete CRUD operations for dynamic product listings and inventory tracking.
  • Order Processing: Optimized API endpoints designed to seamlessly handle concurrent requests during checkout and order creation.
  • Relational Database: A highly normalized PostgreSQL schema designed to guarantee data integrity and maximize query performance.
  • Modular Architecture: Clean, maintainable codebase separating routes, controllers, and database configurations.

Database Architecture

The database is built on a normalized PostgreSQL schema to prevent data redundancy and ensure relationships between Users, Products, and Orders are strictly maintained.

Getting Started

Prerequisites

Installation

  1. Clone the repository:
    git clone [https://github.com/yourusername/ecommerce-backend.git](https://github.com/yourusername/ecommerce-backend.git)
  2. Navigate to the project directory:
    cd ecommerce-backend
  3. Install dependencies:
    npm install
  4. Set up your environment variables. Create a .env file in the root directory and add your database credentials:
    PORT=5000
    DB_USER=your_postgres_user
    DB_HOST=localhost
    DB_NAME=ecommerce_db
    DB_PASSWORD=your_postgres_password
    DB_PORT=5432
  5. Start the development server:
    node server.js

Contributing

This project follows a Git-based version control workflow for collaborative development. Feel free to fork the repository and submit pull requests.

About

A scalable RESTful API for an e-commerce platform (ONGOING) built with Node.js, Express.js, and PostgreSQL. Handles secure user authentication, product management, and optimized order processing using a normalized relational database schema.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors