Giter Club home page Giter Club logo

egg-react-ssr's Introduction

项目目录(遵循egg项目约定)

├── app │ ├── controller │ │ └── page.js 渲染页面的主要逻辑 │ ├── public │ │ ├── assets │ │ └── robots.txt │ ├── readme.md │ ├── router │ │ ├── app.js
│ │ └── ssr.js
│ ├── router.js │ ├── service │ │ └── api.js │ └── utils ├── build │ ├── paths.js │ ├── util.js │ ├── webpack.config.base.js │ ├── webpack.config.client.js │ └── webpack.config.server.js ├── config │ ├── config.default.js 为默认的配置文件,所有环境都会加载这个配置文件,一般也会作为开发环境的默认配置文件。 │ ├── config.local.js 本地开发配置 │ ├── config.prod.js 线上/测试环境开发配置 │ ├── config.ssr.js ssr相关配置,路由配置,前后端公用一套 │ ├── plugin.local.js 插件配置 │ └── readme.md ├── dist │ ├── layout.server.js │ └── page.server.js ├── entry.js 入口文件 ├── jsconfig.json ├── layout.js
├── package-lock.json ├── package.json ├── readme.md └── web ├── apis │ └── index.js ├── components ├── styles ├── utils │ ├── index.js │ └── request.js └── views └── home └── index.js

最后:开发历程

第一个命令:npm run csr 先把前端资源跑起来 第二个命令:npm run debug 把后端egg服务跑起来 第三个命令:npm run ssr 测试服务端代码 最后: rm -rf dist && npm-run-all --parallel ssr csr

egg-react-ssr's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.