Skip to content
/ LapHQ Public

LapHQ is a backend project for a laptop e-commerce website, developed using EJS, Express.js, and MongoDB.

Notifications You must be signed in to change notification settings

joswin18/LapHQ

Repository files navigation

E-commerce Website

An e-commerce platform built using EJS, Express.js, and MongoDB.

check out features


Getting Started

Prerequisites

Ensure you have the following installed on your system:

  • Node.js (v14 or above recommended)
  • MongoDB (running locally or on a cloud service like MongoDB Atlas)

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-folder>
  2. Install dependencies:

    npm install
  3. Set up environment variables:

    • Create a .env file in the root of the project.
    • Add the following variables:
      MONGO_URI=<your-mongodb-connection-string>
      
      *USER_MAIL - for nodemailer setup(optional)
      *USER_PASS - for nodemailer setup(optional)

Running the Application

  1. Start the MongoDB server:

    mongod

    If you are using MongoDB Atlas, ensure your connection string is correctly configured in the .env file.

  2. Start the development server:

    npm start
  3. Open your browser and navigate to:

    http://localhost:5000
    

About

LapHQ is a backend project for a laptop e-commerce website, developed using EJS, Express.js, and MongoDB.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published