Miter Web Framework
Miter is a web framework heavily influenced by Ruby on Rails and SailsJs. It is built on top of Express. Miter uses Typescript's experimental decorators to create elegant controllers and services, using dependency injection to avoid tight coupling.
miter using NPM.
npm install --save miter miter-cli
miter-cli is optional, but can be used to generate and run database migrations from the command line. See miter-framework/miter-cli for more details.
First, create a controller:
Next, start the Miter server using
After you have launched your server, navigate to localhost:8080/greet to see your route in action.
This is a simple demonstration, but you can already see how simple and easy it is to get a server up and running.
Miter is a relatively young framework, and there are bound to be many ways that it can be improved. If you notice a bug, or would like to request a feature, feel free to create an issue. Better yet, you can fork the project and submit a pull request with the added feature.
See what's new in recent versions of Miter.
Special thanks to BrowserStack for generously hosting our cross-browser integration tests!