Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 2.71 KB

README.md

File metadata and controls

34 lines (21 loc) · 2.71 KB

Bob 2.0 Backend Repository

Backend for Personal Digital Assistant Bob 2.0 based on Microservices and Docker.

Structure

The backend is structured with a microservice architecture. Currently, each folder controller, entertainment, finances, journey and welcome contains the code for one USECASE docker container and therefore has an own dockerfile. The general structure is seen below.

Currently, each usecase consists of a flask application, which is a microframework for writing RESTful Apis in Python. The folder src contains the source code of the application. The app.py file is the entrypoint for the flask application. The files in the folder tests are evaluated using pytest. Their filename should start with test_.

Unittests and Continous Integration

When code is pushed into a USECASE folder, all unittests in the tests folder are automatically run using github actions. When all tests pass, the docker container is automatically built using the dockerfile and pushed to it´s respective docker hub repository. These repositories are public.

If anyone would like to use a different framework, programming languages or else he can just adjust the Dockerfiles and github actions.yml.

Results

Controller test and build

Entertainment test and build

Finances test and build

Journey test and build

Welcome test and build