RESTful API service of IdeaMall, which is 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
- 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=@ideamall --registry=https://npm.pkg.github.com
npm i pnpm -g
pnpm i @ideamall/data-service -D
Name | Usage |
---|---|
APP_SECRET |
encrypt Password & Token |
DATABASE_URL |
PostgreSQL connection string |
APP_SECRET |
encrypt Password & Token |
LEANCLOUD_API_HOST |
API domain of LeanCloud |
LEANCLOUD_APP_ID |
App ID of LeanCloud |
LEANCLOUD_APP_KEY |
App Key of LeanCloud |
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 v1.0.0 # this version tag comes from ./package.json
git push origin master --tags
git checkout master
git tag type-v1.0.0 # this version tag comes from ./type/package.json
git push origin master --tags