mirror of
https://github.com/KevinMidboe/patlite-tower-lights-controller.git
synced 2025-10-29 17:50:29 +00:00
40 lines
473 B
Markdown
40 lines
473 B
Markdown
# PATLITE light tower controller
|
|
|
|
## Frontend setup & run
|
|
|
|
### setup
|
|
|
|
```
|
|
cp .env.exmaple .env
|
|
```
|
|
|
|
### build
|
|
|
|
```
|
|
cd frontend
|
|
yarn
|
|
yarn build
|
|
|
|
# docker build
|
|
build -t patlite-light-tower-controller .
|
|
```
|
|
|
|
## Server setup & run
|
|
|
|
```
|
|
cd server
|
|
virtualenv env
|
|
source env/bin/activate
|
|
|
|
pip3 install -r requirements.txt
|
|
python3 main.py
|
|
|
|
or
|
|
|
|
python3 --server main.py
|
|
```
|
|
|
|
## Screenshot of homepage
|
|
|
|
<img src="assets/screenshot.png" alt="screenshot of homepage" width="350px" />
|