-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aae8628
commit 273e815
Showing
2 changed files
with
74 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
# Developing locally | ||
|
||
## FrameOS Controller | ||
|
||
|
||
```bash | ||
cd backend | ||
python3 -m venv env | ||
source env/bin/activate | ||
pip install -r requirements.txt | ||
flask db upgrade | ||
|
||
cd ../frontend | ||
npm install | ||
cd .. | ||
|
||
honcho start | ||
``` | ||
|
||
## Running migrations | ||
|
||
```bash | ||
cd backend | ||
# create migration after changing a model | ||
flask db migrate -m "something changed" | ||
# apply the migrations | ||
flask db upgrade | ||
``` | ||
|
||
## FrameOS device software | ||
|
||
Running it natively on a Mac will fail with | ||
|
||
```bash | ||
spidev_module.c:33:10: fatal error: 'linux/spi/spidev.h' file not found | ||
#include <linux/spi/spidev.h> | ||
``` | ||
|
||
So we use Docker: | ||
|
||
```bash | ||
cd frameos | ||
docker build -t frameos . && docker run -t -i frameos python3 test.py | ||
``` | ||
|
||
# TODO | ||
|
||
Tracked here: https://github.com/mariusandra/frameos/issues/1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters