Skip to content

A starter kit for building REST API applications with Express.js.

License

Notifications You must be signed in to change notification settings

simplymichael/express-api-starter-kit

Repository files navigation

Express API Starter Kit

A starter kit for building REST API applications with Express.js.

Node version License Conventional commits Tests Coverage

Routing

Routes are defined in the src/routes directory. Each route is an object with several properties. One of these properties is the handler property which specifies the request handler for this route. The handler can be specified in one of four ways:

  • A function
  • An array: [controller: Object|String, method: Function|String]
  • An object: { controller: Object|String, method: Function|String }
  • A string "controller.method"

Dependency Injection (DI) Container

Every route handler (both controller methods and stand-alone functions) has access to the DI Container's methods (register and resolve) via the this property. Also, every middleware and route handler can access these methods via the req.app property.

Contributing

License

MIT License

Author

Simplymichael (simplymichaelorji@gmail.com)

About

A starter kit for building REST API applications with Express.js.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages