# egg-project **Repository Path**: yunxii/egg-project ## Basic Information - **Project Name**: egg-project - **Description**: egg - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-15 - **Last Updated**: 2021-11-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # egg egg study ## QuickStart see [egg docs][egg] for more detail. ### Development ```bash $ npm i $ npm run dev $ open http://localhost:7001/ ``` ### Deploy ```bash $ npm start $ npm stop ``` ### npm scripts - Use `npm run lint` to check code style. - Use `npm test` to run unit test. - Use `npm run autod` to auto detect dependencies upgrade, see [autod](https://www.npmjs.com/package/autod) for more detail. [egg]: https://eggjs.org ``` egg-project ├─ .autod.conf.js ├─ .eslintignore ├─ .eslintrc ├─ .github │ └─ workflows │ └─ nodejs.yml ├─ .gitignore ├─ .travis.yml ├─ app │ ├─ controller │ │ └─ home.js │ ├─ public │ └─ router.js ├─ appveyor.yml ├─ config │ ├─ config.default.js │ └─ plugin.js ├─ jsconfig.json ├─ package.json ├─ README.md └─ test └─ app └─ controller └─ home.test.js ``` ### 服务端渲染的好处 - 对 SEO 非常友好 - Egg php 后端的一致性 - 中台 一次登录 spa ejs 高效的嵌入式 JavaScript 模板引擎。 session 中间件 ``` bash yarn add egg-view-ejs npm install egg-view-ejs --save