🌲🏡 兔头和小刺猬的树屋 - 微信云托管后端
微信云托管 Node.js Express 框架模版,实现简单的计数器读写接口,使用云托管 MySQL 读写、记录计数值。
前往 微信云托管快速开始页面,选择相应语言的模板,根据引导完成部署。
下载代码在本地调试,请参考微信云托管本地调试指南
代码变动时,不需要重新构建和启动容器,即可查看变动后的效果。请参考微信云托管实时开发指南
请参考如何提高项目构建效率
.
├── Dockerfile
├── README.md
├── container.config.json
├── db.js
├── index.js
├── index.html
├── package.json
index.js
:项目入口,实现主要的读写 APIdb.js
:数据库相关实现,使用sequelize
作为 ORMindex.html
:首页代码package.json
:Node.js 项目定义文件container.config.json
:模板部署「服务设置」初始化配置(二开请忽略)Dockerfile
:容器配置文件