/backend-generator

Back-end generator

Primary LanguageTypeScript

Back-end Generator

Milestones

  • Configure propper environment variables
  • Improve authentication methods
  • Use winston logger only
  • Better error handling

Instructions

Modify models.json for configuring the server.

Generate server files:

$ npm run generate

Delete the generated files:

$ npm run clean

Delete the generated files and create them again:

$ npm run regenerate

Run the generated express application:

$ npm run generated-server

or

$ npm run generated-server-watch

Test all endpoints

$ npm test

Testing

The generated code is tested using the popular npm library Jest.

Test the application using Jest:

$ npm run test

See the folowing link to use Jest inside a typescript project: https://github.com/basarat/typescript-book/blob/master/docs/testing/jest.md