mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-27 16:10:30 +08:00
b1fbd0fa96
add backend-dev devcontainer and extract openapi.json to docs/
24 lines
573 B
Bash
24 lines
573 B
Bash
# ensure pre-commit is installed
|
|
pre-commit install
|
|
|
|
# create python virtual environment
|
|
python3 -m venv .venv
|
|
|
|
# install python dependencies in /backend
|
|
cd backend
|
|
pip install -r requirements.txt
|
|
cd ..
|
|
|
|
# install code in editable mode in /oasst-shared
|
|
cd oasst-shared
|
|
pip install -e .
|
|
cd ..
|
|
|
|
# docker compose up for backend-dev
|
|
docker compose up backend-dev --build --attach-dependencies -d
|
|
|
|
# note: commented out for now, you probably want to manually run this part once in the devcontainer
|
|
# run run-local.sh script
|
|
# cd scripts/backend-development/
|
|
# bash run-local.sh
|