Skip to content

treocaynho01629/CDWeb_RING-2.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CDWeb_RING-2.0

An E-Commerce Web App using Spring Boot, ViteJS.

Feature:

  • CRUD Books, Users, Reviews.
  • JWT Authentication: Sign in, Sign up, Recover pass
  • Search, Filters books, Sell books
  • Cart function, Orders, Reviews books

Local setup

Database

  • You can get the MSSQL database files from the old master branch and migrate from there

Setup environment variable

  • Front-End .env
VITE_PORT_SOCKET_SPRING=<Your spring application url path>
  • Back-End .env
SPRING_PROFILES_ACTIVE=<Active profiles>
CLIENT_URL=<Your client path>
DB_HOST=<Your SQL database path>
DB_PORT=<Your SQL database port>
DB_NAME=<Your SQL database name>
DB_USERNAME=<Your SQL username>
DB_PASSWORD=<Your SQL password>
EMAIL_USERNAME=<Your email address>
EMAIL_PASSWORD=<Your email app password>
JWT_SECRET_KEY=<Your secret key>
JWT_SECRET_REFRESH_KEY=<Your refresh secret key>

About email app password

Commands

  • Use npm install to install and then npm run dev to start the front-end | npm run build and npm run preview to build prod
  • Use mvn clean install to install and then mvn spring-boot:run to start the back-end

Screenshot

TRANGCHU DANGNHAP CUAHANG SANPHAM DANHGIA GIOHANG THANHTOAN HOSO HOSO2 HOSO3 DASHBOARD QUANLYSACH3 QUANLYNGUOIDUNG3 KHOIPHUCMATKHAU