GuilhermeCarra / nodejs-ecommerce

Web MVC application using node.js, mysql and related technologies like express.js. It consists of a client facing web application that users can connect to in order to see the products being sold and make purchases, a dashboard frontend application that the employees can use to perform CRUD operations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

e-commerce with Node.js (MVC Pattern)


Overview

This project is focused in develop a Web MVC application using node.js, mysql and related technologies. It consists of a client facing web application that users can connect to in order to see the products being sold and make purchases, a dashboard frontend application that the employees can use to perform CRUD operations on the product catalog of the application, and a backend server that will be used to host api endpoints and the database to store all the information.

Screenshots

img

Getting Started

After cloning this repository, excute the folowing commands to test it:

  • Installing dependencies:
npm install
  • Configure your .env file:
Based on the file ".env.example"
  • Creating a database:
mysql > create database "name in your .env file"
  • Populating the database:
npm run database
  • Starting the server (on port specified in the .env file):
npm run node

Credentials

The "database script" populates some users on DB with different roles. Use the following examples:

  • Regular user
email: user@user.com
password: 123456
  • Employee
email: employee@employee.com
password: 123456
  • Admin
email: admin@admin.com
password: 123456

Author

About

Web MVC application using node.js, mysql and related technologies like express.js. It consists of a client facing web application that users can connect to in order to see the products being sold and make purchases, a dashboard frontend application that the employees can use to perform CRUD operations


Languages

Language:JavaScript 51.5%Language:HTML 33.8%Language:Pug 12.7%Language:CSS 1.6%Language:Shell 0.4%