Skip to content

FikriRNurhidayat/express-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express Typescript with Jest Template

This repository is just a basic Express Typescript setup with Jest as Testing Framework. The design pattern being used is Service Repository Pattern.

How to Run

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

Serving Response

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.

About

Express Typescript Repository Template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published