This repository is just a basic Express Typescript setup with Jest as Testing Framework.
The design pattern being used is Service Repository Pattern
.
Install it!
yarn
Then if you want to run a development server use:
yarn serve
And if you want to use it on the production server just use:
yarn build && yarn start
This repository is very opinitated, it uses the JSend specification on serving JSON response.
Use this following method to serve the response, from the Response
object:
res.ok(200, {});
res.fail(404, {});
res.error(500, err);
TODO: Write proper documentation.