Skip to content

A responsive ecommerce website using Node js, Express js, and MongoDB

Notifications You must be signed in to change notification settings

eginnovations/nodejs-ecomm

 
 

Repository files navigation

Node.js Ecommerce

Table of contents

Introduction

A ecommerce website using Node.js, Express JS, and Mongoose. This repository was thoughtfully crafted to serve as a convenient sandbox for your hands-on exploration of eG observability within the context of a modest yet authentic project.

Sample

appFrontPage

Prerequisite

  • Node.js > 12
  • MongoDB 5.0

Installation

npm install

Configuration

To run this application, you have to set the below enviromental values

  • SESSION_SECRET: this is the secret express-session.

  • MONGO_URI: this is the connection string of your MongoDB database.

Run

npm start

Enabling eG Distributed Tracing

To enable distributed tracing for the backend parts of this application it is required to have eG Manager and eG Agent.

Create New Component

egNewComp

Add Snippet

Copy the code snippet once the Node.js Component is created and include it as the first statement in server.js file and restart the server. snippet

Enabling eG Distributed Tracing in Kubernetes

Install eG Innovations Universal Agent Operator

Follow the steps mentioned in eG Innovations Operatorhub to install the Universal Agent Operator

License

License

About

A responsive ecommerce website using Node js, Express js, and MongoDB

Resources

Stars

Watchers

Forks

Languages

  • JavaScript 51.0%
  • EJS 40.4%
  • CSS 8.3%
  • Dockerfile 0.3%