typescript-express-boilerplate

This template created for own purposes, but anyone can use it

What does the boilerplate include?

  • Webpack
  • TypeScript
  • Express
  • EsLint
  • Prettier

Structure of project

src/
-- config/
-- -- index.ts
-- handlers/
-- -- example.handler.ts
-- -- ...your own handlers
-- helpers/
-- -- response.helpers.ts
-- -- ... your own helpers
-- middlewares/
-- -- 404.middleware.ts
-- -- error.middleware.ts
-- -- ...your own middlewares
-- routers/
-- -- app.router.ts
-- -- example.router.ts
-- -- ...your own routers
-- types/
-- -- customerror.type.ts
-- -- expresstypes.type.ts
-- -- responsebody.type.ts
-- -- ...your own types
-- index.ts

EXAMPLES OF CREATING MODULES YOU CAN SEE IN THE FILES example.**