Logo

Lumie

Make a dazzling node API, write better apps and ship faster !

Lumie is a lightweight module that allows you to set up a scalable controllers architecture for your node.js project. I wrote a module which helps me create controllers for my node.js apps. Today, I’m so satisfied using it, that I wanted to make it public. I use Lumie for all my web projects, it helps me keep a great architecture and write better code. It’s lightweight, easy to use and it has been designed to create scalable apps. Today it’s used for tiny side projects and also by a large company. HOW IT WORKS Lumie goes through the files and folders inside your controllers directory to find what we call "routing definitions". Each controllers are defined in files, which export their routing definitions By default, we use the name of the file that exports the routing definition to name the route: / > controllers > cars.js will create the endpoints /cars/* / > controllers > admin > rules.js will create the endpoints /admin/rules/* / > controllers > users