https://github.com/imsobear/express-icejs-ssr
https://github.com/imsobear/express-icejs-ssr
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/imsobear/express-icejs-ssr
- Owner: imsobear
- Created: 2020-09-11T03:18:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-21T05:54:55.000Z (over 4 years ago)
- Last Synced: 2025-01-22T20:51:30.701Z (5 months ago)
- Language: JavaScript
- Size: 163 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## express+icejs+ssr
核心代码:[server](/server/routes.index.js)
## 使用
```bash
# 安装依赖
$ npm install --registry=https://registry.npm.taobao.org# 启动前端服务
$ npm run start# 启动后端服务
$ npm run start:server # visit http://localhost:3000
```
## 部署
```bash
# 构建前端资源
$ npm run build# 启动后端服务
$ npm run start:server
```## 目录
```md
├── build/ # 前端构建产物(后端 static 服务)
├── bin/
│ └── wwww # 后端应用启动脚本
├── public/
├── client/ # 前端代码
│ └── app.[j,t]s[x] # 前端应用入口
├── server/ # 后端代码
│ └── app.[j,t]s[x] # 后端应用入口
├── README.md
├── package.json
├── build.json # 前端工程配置
└── tsconfig.json
```