egg typescript code generator
$ npm i
$ npm run dev
$ open http://localhost:7001/Don't tsc compile at development mode, if you had run tsc then you need to npm run clean before npm run dev.
$ npm run tsc
$ npm start- Use
npm run lintto check code style - Use
npm testto run unit test - se
npm run cleanto clean compiled js at development mode once
- Node.js 8.x
- Typescript 2.8+
$ npm run devPOST /api/1/code_generator
Reuqest Body:
{
"author": "UncleYang",
"table_name": "your_table_name",
"table_annotation": "your_table_annotation",
"db_host": "Your database host",
"db_port": "Your database port",
"db_user": "Your database user",
"db_password": "Your database password",
"db_name": "Your database name",
"disk_path": "Your project main path which need to code generate"
}