Git Product home page Git Product logo

ssr-online-store's Introduction

SSR-Online-Store🛒⭐

This is a simple e-commerce store web application built as a server-side rendered (SSR) app with an MVC pattern using Express, Node.js, EJS, and MongoDB. The project covers fundamental features of SSR web applications and serves as an educational resource. It includes the following features:

Features

  1. Session Authentication and Password Reset

    • Secure user authentication with session management.
    • Password reset functionality via email.
  2. Email Integration with Nodemailer

    • Utilizes Nodemailer for sending transactional emails.
  3. CSRF Tokens Protection

    • Implements Cross-Site Request Forgery (CSRF) token protection to enhance security.
  4. Validation with Express-Validator

    • Implements data validation using the Express-Validator library for robust input validation.
  5. File Download and Upload with PDFKit

    • Allows users to download and upload files.
    • Generates PDF documents using PDFKit.
  6. Pagination

    • Implements pagination for a seamless user experience when browsing through products.
  7. Stripe Payment Integration

    • Facilitates secure online payments using the Stripe payment gateway.
  8. Database Options

    • Two branches available:
      • pure-sql: CRUD operations are handled with SQL queries.
      • sequelize: Uses Sequelize for CRUD operations and implements SQL relationships (one-to-many, many-to-many).

Technologies Used

  • Express.js: A Node.js framework for building web applications.
  • EJS: A templating engine for rendering dynamic HTML content.
  • MongoDB: A NoSQL database for storing application data.
  • SQL (in the pure-sql branch): Utilized for CRUD operations in the traditional SQL way.
  • Sequelize (in the sequelize branch): An ORM for working with SQL databases.
  • Nodemailer: A Node.js module for sending emails.
  • Stripe: A payment gateway for handling online payments.

Getting Started

  1. Clone the Repository
    git clone https://github.com/ar-ilyes/ssr-online-store.git
    cd ssr-online-store
  2. install Dependecies
    npm install
  3. Run the Application
    npm start

Branches

This repository includes multiple branches, each serving a specific purpose:

  • main: The main branch, where the project is built with MongoDB as the database.
  • pure-sql: In this branch, CRUD operations are handled with SQL queries.
  • sequelize: The sequelize branch uses Sequelize, an ORM, for CRUD operations and implements SQL relationships such as one-to-many and many-to-many.

You can switch between branches to explore different aspects of the project or choose the one that aligns with your preferred database and development approach.

ssr-online-store's People

Contributors

ar-ilyes avatar

Watchers

 avatar

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.