Todo_microservice
September 27, 2019 ยท View on GitHub
A simple microservice developed with Python using Flask, connexion, MongoDB, Injection and Angular 4 as front-end.
This project is fully developed using Microservice Pattern.
Run the application
Simply run docker-compose up --build in the directory containing docker-compose.yml.
TODO Server
The server dealing with the TODO list is developed using:
- Flask (as the web library);
- connextion (to generate routes and Swagger docs);
- MongoDB (as the data source).
Setup
See here.
Architecture
We generated routes and Swagger docs using connexion. The full swagger specification can be found here.
We used a Repository Pattern to manage data source and dependency injection using injector, so you can easily change the db, without chaning uppermost layers (e.g. business layer).
TODO Client
The client gives you the opportunity to manage the TODO list, and interacts with the TODO server. It is developed using Angular 4.
We generated the app skeleton with angular-cli.
Setup
See here.