Skip to content

xiong34664/go-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

商城项目

前台由mui框架,后台由node.js+mysql实现的网上商城系统

使用

商城基于node & npm,所以这两个工具必不可少。

  1. 执行命令npm i安装依赖
  2. 将/docs 下的letao初始化.sql 导入数据库
  3. 在/models/db.js 下配置数据库密码
const pool  = mysql.createPool({
    host : '127.0.0.1', //数据库地址
    user : 'root',      //用户名
    password : '****',  //数据库密码
    database : 'letao'  //数据库名
});
  1. 执行命令npm start启动商城 默认端口号为3000
  2. 前台页面为 loclhost:3000/m
  3. 后台页面为 loclhost:3000/pc