-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Description
-
首先你的本地需要有node.js执行环境、npm和Mysql数据库。
clone项目到本地。 -
MySQL建库建表,根目录的storeDB.sql有建库建表sql语句。根据本地数据库连接的相关设置修改根目录config.js中关于数据库连接的配置。
自行插入数据到数据库,根目录的analogDataSql.sql有虚拟数据插入语句。 -
进入项目目录(cd store-server)。
安装依赖(npm install)。
-- npm install -g @vue/cli
-- npm install vue-router
-- npm i koa
-- npm i koa2
npm i -g nodemon
(从package.json中验证了各个依赖的版本,在node_modules目录中验证这些依赖已经存在) -
运行项目node app.js。
或:nodemon app.js -
从浏览器中输入:
htt://127.0.0.1:3000
不知道为什么页面是Not Found, 这个过程有什么问题么?谢谢!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels