RESTful API service scaffold based on Node.js & TypeScript
- HTTP server: Koa
- Controller framework: Routing Controllers
- Model framework: Class Transformer & Class Validator
- ORM framework: TypeORM
- API document: Swagger
- Mock API: OpenAPI backend
- Install Settings GitHub app in your account or organization
- Click the Use this template button on the top of this GitHub repository's home page, then create your own repository in the app-installed namespace above
- Click the Open in GitHub codespaces button on the top of ReadMe file, then an online VS Code development environment will be started immediately
- Recommend to add a Notification step in GitHub actions for your Team IM app
- Remind the PMs & users of your product to submit Feature/Enhancement requests or Bug reports with Issue forms instead of IM messages or Mobile Phone calls
- Collect all these issues into Project kanbans, then create Pull requests & add
closes #issue_number
into its description for automation
- Entry: http://localhost:8080/
- Document: http://localhost:8080/docs/
- Schema: http://localhost:8080/docs/spec/
- Generate a PAT with
read:packages
authorization - Run Sign-in command in your terminal, and use PAT as password:
npm login --scope=@your-org --registry=https://npm.pkg.github.com
npm i pnpm -g
pnpm i @your-org/rest-node-ts -D
Name | Usage |
---|---|
APP_SECRET |
encrypt Password & Token |
DATABASE_URL |
PostgreSQL connection string |
npm i pnpm -g
pnpm i
pnpm dev
or just press F5 key in VS Code.
pnpm upgrade:dev
npm start
pnpm upgrade:pro
pnpm pack-image
pnpm container
git checkout master
git tag v0.6.0 # this version tag comes from ./package.json
git push origin master --tags
git checkout master
git tag type-v0.6.0 # this version tag comes from ./type/package.json
git push origin master --tags