Setting up your first FastIoT Project¶
There are some basics steps to follow to create your first project
Prerequisite¶
Following prerequisites are needed on a development machine:
Python Version 3.10.x installed (should work with Python 3.8+ as well though not tested)
Docker installed
docker-compose
installedInternet access for * Public Docker Repository _Docker Hub_ * apt-Repository (for Linux Debian Stretch to install Packages in Docker Images) * pypi.python.org for python-library
Setup Project¶
Create a new project directory
Change to this directory, e.g.
cd myproject
Create Python Virtual Environment:
python3.10 -m venv venv
Activate VEnv:
source venv/bin/activate
Install FastIoT:
pip install fastiot
- Create basic directory structure for your project:
fiot create new-project my_project_name
For more options about creating projects see
fiot create new-project --help
Create a first service if you want to:
fiot create new-service a_service
- If working with PyCharm you have to Mark the generated
src
directory as “Sources Root”For more information on PyCharm please refer to Setting up PyCharm for development