husnuljahneer / vue-ecommerce-backend

🌊 - Vue Js | eCommerce Backend - NodeJs
http://outreach-fashion.s3-website.ap-south-1.amazonaws.com/
MIT License
0 stars 0 forks source link
expressjs jwt-authentication nodejs passportjs

Outreach eCommerce Backend

Outreach is a sample application that demonstrates a responsive eCommerce website using Prisma, Vue.js, TailwindCss, Express and Node.js. The application will load products from the database and displays them. Users can log in, register, order products from the website. This website also includes the Vuex Shopping cart system and beautifully designed components using Tailwindcss.

LIVE DEMO

Link to Frontend Repo

Installation

npm Install

Main dependencies

.env configuration

configure the database url here

DATABASE_URL="mysql://root@localhost:3306/example_db"

Prisma Configuration

prisma/prisma.schema

datasource db {
  provider = "mysql"
  url      = env("DATABASE_URL")
}

After Prisma configuration

To pull the DB from MySQL DB we provided above

npx prisma db pull

To generate the Prisma client

npx prisma generate 

Run the application

npm start

Run the application in development server

npm start-dev

Testing

npm run test

License

MIT