Rares
Rares helps you build API backend faster.
Why yet another framework?
TL;DR: because convention is better than bikeshedding.
Despite their claims, express and hapi are not application frameworks, but rather http frameworks. They liberally avoid you application code, providing you with flexibility, but wasting human resources on hidden costs.
Rares is a proper application framework. It gives your application code the foundation and structure, leaving less room for opinion.
Getting started
Install:
npm install rares
Simple app:
// config/routes.jsmodule { const resource = AppRouter; return ;};
// controllers/memory.jsmodule { let value = null; // @NOTE: in the real world you would have a data store return Controller async { return value ; } async { value = this$paramsvalue; return value ; } ;};
Run the app in development mode:
npx rares dev> Server running at: http://localhost:3000
Use the app:
curl http://localhost:3000/memory>
Contribute
- Issue Tracker: GitHub Issues
- Source Code:
- Core: rares
- Bindings for Hapi: hapi-rares
- Bindings for Express: express-rares
License
The project is licensed under the ISC license.