【文件属性】:
文件名称:thinkjs_demo:学习thinkjs
文件大小:1.69MB
文件格式:ZIP
更新时间:2021-05-15 06:46:29
JavaScript
Application created by
NodeJs 开发企业站点
安装依赖
项目安装后,进入项目目录,执行 npm install 安装依赖,也可以使用 taobao 源进行安装。
npm install 或者
npm install --registry=https://registry.npm.taobao.org --verbose
开启服务
npm start
浏览地址
http://127.0.0.1:8360/
数据库管理
新建数据库 test
导入 /databases 文件夹的数据表
数据库连接配置文件:/app/common/config/db.js
表结构:
think_article : id title content catalogId joinTime
think_catalog : id name
Deploy with pm2(扩展)