# egg.js api template **Repository Path**: jsdk/egg.js-api-template ## Basic Information - **Project Name**: egg.js api template - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-29 - **Last Updated**: 2021-11-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # egg.js api template ### Development ```bash $ npm i $ npm run dev $ open http://localhost:7001/ ``` ### Deploy ```bash $ npm start $ npm stop ``` ### pm2 ```bash $ pm2 start server.js --name ``` ### 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 ### template api ```angular2html [get] /api/sys/getId [post] /api/sys/uploads [post] /api/sys/login [post] /api/sys/status [rest] /api/sys/admin [rest] /api/file ``` ### database mysql ```angular2html db_template.sql ```