This project is no longer under development, a combination of Koa with GraphQL can achieve a similar functionality.
FawkesJs starter consist of access token, acl, swagger, db to use with Fawkesjs. Can be used to setup web front end + API.
git clone https://github.com/fawkesjs/fawkesjs-starter
cd fawkesjs-starter
npm install
npm run start # use npm run dev to not rebuilding the database
open another console and run following command to have auto restart
npm run watch
- Generating Swagger:
npm run swagger
- Full Migrate DB:
npm run db:sync
- Restart App:
node .
ornodemon ./index.js -e ts --watch app
- Add default use knexjs for query and sequelize for orm
- You can directly call Api with Postman/etc, the server will do data validation according to swagger configuration
- ErrorCode in error return: REST_PARAM_ERROR = 601, ACL_ERROR = 602, REST_PARAM_NOT_SUPPORTED = 604, EMAIL_LOGIN_ERROR = 10001, DB_ERROR = 10002
- Express
- Sequelize
- Typescript
- Swagger: use
fawkesjs -s ./swagger/swagger.json
to generate swagger document - Express Rest Param Validation: integration with swagger document generation
- Acl (inside
fawkesjs-starter/app/module
) - AccessToken (inside
fawkesjs-starter/app/module
)