This projects aims to offer a comprehensive guide to record polysomnographic EEG data from home with an OpenBCI, a website to upload sleep data to our classifier and an interactive visualisation tool to observe the classified night of sleep.
- Install Yarn package manager
- Install Python 3 and pip
- Consider using
venv
to create a virtual environment
- Install the latest stable version of flutter
- Install VS Code
- Install the project's recommended extensions
- Open workspace
polydodo.code-workspace
- Install Python packages by running
pip install --user -r backend/requirements.txt
- Install node modules by running
yarn install --cwd web
- Fetch Flutter dependencies through the
Flutter
extension - Start dev server by running
python backend/app.py
Run python -m PyInstaller --onefile app.py
- Login to Github Docker registry
docker pull docker.pkg.github.com/polycortex/polydodo/backend:latest
docker run -p 8080:8080 docker.pkg.github.com/polycortex/polydodo/backend:latest
Prior to build execute build-runner to generate the app's routes.
flutter packages pub run build_runner watch --delete-conflicting-outputs