Backend RESTful API application for the smart dishwasher project. API implemented in Flask micro framework with SocketIO functionalities.
✨ This is a component of the
SmartDishwasher
project. FOR A PROJECT OVERVIEW PLEASE VISIT THE SmartDishwaser REPOSITORY.
➡️ In conjunction with projects DishwasherOS and DishwasherFrontend
┌────────────────────────┐
smart dishwasher project │ Docker Container │
│ ┌───────┐ │
│ │MongoDB│ │
│ └──▲────┘ │
│ │ │
┌──────────────┐ REST-API │ ┌──▼──────────────┐ │
│ DishwasherOS ├───────────────┼─►│DishwasherBackend│ │
└────┬───▲─────┘ │ └────┬─▲──────────┘ │
│ │ │ │ │ REST-API │
│ │ │ │ │ Socket.IO │
┌────▼───┴─────┐ │ ┌────▼─┴────────────┐ │
│ Dishwasher │ │ │DishwasherFrontend │ │
└──────────────┘ │ └───────────────────┘ │
│ │
└────────────────────────┘
The backend application establishes a RESTful API for the interface between OS and frontend, as well as to the database. A MongoDB is used as persistent data storage.
The application is deployed in a Docker enviroment. Installation of docker
as well as docker-compose
is required.
git clone https://github.com/AmbroAnalog/DishwasherBackend.git
- add configuration file
app/configuration.yaml
for database credentials:
database:
server: 192.168.0.10
port: 27017
user: myuser
password: mypassword
database: SmartDeviceHub
collection: device_g470
docker-compose up -d --build
- The API is now available at port 5000.