A nodejs module making node-restify more easy to use.
Inspired by Sailsjs. People can use Configuration making their restify server.
Feel Honorable to contribute your idea.
IMPORTANT version above 0.1.0 shall be stable.
User Oars Generator create a sample.
- Globals Variable
- Logging
- Middleware
- Policies
- Routes
- Services
- Oars Generator
- API Document
Global variables will be exposed automatically by Oars. Default with async, lodash, oras, services available in global variables, you can use it directly in each controller.
Make your server with more detail logger.
You can easily config the default or your own middlewares with the loading order.
Configurable policies for controler or controller's method.
You can design your app's URLs in any way you like :)
Protection against most known types of web-application-level attacks.
Services can be thought of as libraries which contain functions that you might want to use in many places of your application. For example, you might have an EmailService which wraps some default email message boilerplate code that you would want to use in many parts of your application. The main benefit of using services in Oars is that they are globalized -- you don't have to use require() to access them.
We provide command line generator tools for init your project.