Provide a kernel module
Summary:
Allow to start the application with a PostgreSQL connection as managed state.
The configuration can be customized, with a default one reading parameters
from environment or an .env file.
Test Plan:
This allows to start application as easily as:
extern crate env_logger; extern crate limiting_factor; mod requests; use limiting_factor::kernel::DefaultApplication; use requests::*; fn main() { env_logger::init(); let routes = routes![ status, favicon, users::register, users::get_player, ]; DefaultApplication::start_application(routes); }
Reviewers: dereckson
Reviewed By: dereckson
Differential Revision: https://devcentral.nasqueron.org/D1665