https://github.com/sanyuan0704/react-ssr
从零开始手搭的React服务端渲染框架
https://github.com/sanyuan0704/react-ssr
Last synced: 6 months ago
JSON representation
从零开始手搭的React服务端渲染框架
- Host: GitHub
- URL: https://github.com/sanyuan0704/react-ssr
- Owner: sanyuan0704
- Created: 2019-07-08T03:42:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-09T03:27:06.000Z (over 6 years ago)
- Last Synced: 2025-04-10T11:12:23.923Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 297 KB
- Stars: 113
- Watchers: 1
- Forks: 30
- Open Issues: 4
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
React服务端渲染,使用方式:
1、到node_server文件夹下,执行npm install,然后执行node app.js,启动后端接口的服务器(端口为4000,用其他语言实现均可)
2、npm install nodemon npm-run-all -g 全局安装nodemon工具和npm-run-all,不然之后的项目命令会无法识别
3、到my_ssr文件夹下,执行npm install, 然后执行npm run dev启动项目(命令配置细节请看package.json里面的script内容),打开浏览器通过localhost:3001即可访问。
配套技术点详解文章地址:
https://juejin.im/post/5d1fe6be51882579db031a6d