#include #include #include "debug/log.hpp" #include "utils/ioc/container.hpp" #include "database/db.hpp" #include "speedy/speedy.hpp" #include "api/resources/include.hpp" #include "threading/pool.hpp" #include "threading/task.hpp" #include "utils/terminate_handler.hpp" int main() { std::set_terminate(&terminate_handler); ioc::Container container; container.singleton(); auto loop = container.singleton(); auto app = container.singleton("/db/data"); container.singleton(4); container.singleton(); init(container); http::Ipv4 ip("0.0.0.0", 7474); app->listen(ip); loop->run(uv::UvLoop::Mode::Default); return 0; }