【文件属性】:
文件名称:cash-machine-node-react
文件大小:666KB
文件格式:ZIP
更新时间:2021-03-21 09:03:42
JavaScript
安装依赖项
在根目录中运行npm i
在/ client目录中运行npm i
Postgres设定
安装postgres
更改db / index.js中的pg连接字符串以匹配您的数据库设置
运行node node_modules/connect-pg-simple/table.sql设置表以存储cookie会话
运行node bin/seeds.js来设置应用程序需要的所有其他表
您已成功建立数据库:)
怎么跑
使用nodemon启动快速服务器运行nodemon bin/www
在/ client目录中为react app运行npm start启动开发服务器