Coder Social home page Coder Social logo

duske953 / ecommerce-backend Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 3.25 MB

Backend for handling user-authentication and product-management

Home Page: https://oek-ecommerce-backend.vercel.app

JavaScript 100.00%
ecommerce-backend mern-stack mongodb nodejs order-processing porfolio-project product-management restful-api userauthentication

ecommerce-backend's Introduction

Tech-freak: Server for Tech-Freak E-Commerce Web App

1. Project Description:

This repository serves as the backend for the Tech Freak e-commerce web application. It handles functionalities like:

  • User authentication and management (signup, login, password reset)
  • Product data management (CRUD operations)
  • Order processing
  • Email notifications

2. Technologies:

3. Security Features:

  • Rate limiting: Implemented to prevent malicious overuse of the API and protect against denial-of-service attacks.
  • CORS (Cross-Origin Resource Sharing) handling: Ensures secure communication between the frontend and backend, preventing unauthorized cross-origin requests.
  • Robust error handling: Provides informative error messages for troubleshooting and prevents unexpected application crashes.
  • CSRF (Cross-Site Request Forgery) protection: Mitigates the risk of unauthorized actions being performed on a user's account by an attacker.

4. Frontend:

This backend is designed to work seamlessly with the corresponding frontend repository: https://github.com/duske953/ecommerce-frontend.

Prerequisites:

  • Node.js and npm (or yarn) installed on your machine.

Installation:

  1. Clone this repository.
  2. Navigate to the project directory.
  3. Run npm install (or yarn install) to install all required dependencies.

Configuration:

  1. Create a .env file in the project root directory.
  2. Add environment variables for sensitive information like:
    • Database connection details (URI, username, password)
    • JWT secret key
    • Stripe API keys

6. Important Note:

  • This project is intended solely for demonstration purposes. Please note that while Stripe integration is included, it is not intended for real-world transactions and should not be used in a production environment.

7. Additional Notes:

  • Refer to the official documentation of each technology listed above for detailed usage and configuration information.
  • The backend architecture utilizes:
    • Express.js for building the RESTful API.
    • Mongoose for interacting with the MongoDB database.
    • JWT for user authentication and authorization.
    • Nodemailer for sending email notifications.
    • Stripe for payment processing

ecommerce-backend's People

Contributors

duske953 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

shaan76

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.