2021-03-10 00:53:40 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2021-03-15 00:30:16 -04:00
|
|
|
set -e
|
2021-03-10 00:53:40 -05:00
|
|
|
|
2021-03-15 00:30:16 -04:00
|
|
|
source ./common.sh
|
2021-03-10 00:53:40 -05:00
|
|
|
|
2021-03-15 00:30:16 -04:00
|
|
|
function dev_frontend() {
|
2021-03-10 00:53:40 -05:00
|
|
|
prefix_stdout_stderr "${PURPLE}frontend: ${NC}"
|
|
|
|
|
|
|
|
cd ./frontend
|
|
|
|
|
|
|
|
npm run dev
|
|
|
|
}
|
|
|
|
|
2021-03-15 00:30:16 -04:00
|
|
|
function dev_backend() {
|
2021-03-10 00:53:40 -05:00
|
|
|
prefix_stdout_stderr "${CYAN}backend: ${NC}"
|
|
|
|
|
|
|
|
cd ./backend
|
|
|
|
source venv/bin/activate
|
|
|
|
|
|
|
|
python main.py
|
|
|
|
}
|
|
|
|
|
2021-03-15 00:30:16 -04:00
|
|
|
run_frontend_backend "dev_frontend" "dev_backend"
|