Exemplary real world app built with 💎 Zafiro.
Zafiro is a strongly typed and lightweight web framework for Node.js apps powered by TypeScript, InversifyJS, TypeORM and Express 🚀
1 Clone the repository
git clone https://github.com/remojansen/zafiro-realworld-example.git
2 Setup
npm install
npm run setup
3 Run the tests
npm test
4 Run the app
npm start
You should see the following output in your terminal:
When you run the Node.js app the following things happen automatically:
- Create a database connection.
- Create database repositories.
- Declare type bindings for the repositories.
- Declare type bindings for the controllers.
- Configure the Express router.
Yes, it is real!