Use these steps to start both backend (Python) and frontend (TypeScript) locally.
- Git, Python 3.10+ with
pipavailable. - Node.js 18+ and npm.
- Optional but recommended: create a Python virtual environment.
- Get the latest code:
git pull- Enter the project root:
cd miro-vibe- Install npm dependencies (runs frontend install via postinstall):
npm install- Install Python dependency for realtime (once):
python3 -m pip install websockets- Start backend and frontend together (default: API on http://0.0.0.0:8000, WebSocket on ws://0.0.0.0:8765, frontend dev server on http://127.0.0.1:5173):
npm start- Open the frontend in a browser at http://127.0.0.1:5173/. Use Register to create a user, then Log in.
- Backend only:
npm run start:backend
- Frontend only (expects backend already running):
npm run start:frontend
Ниже пошагово, как поднять бэкенд и фронтенд локально.
- Git, Python 3.10+ с
pip. - Node.js 18+ и npm.
- По желанию: виртуальное окружение Python.
- Забрать свежий код:
git pull- Перейти в корень проекта:
cd miro-vibe- Установить npm-зависимости (postinstall поставит фронтенд):
npm install- Поставить Python-зависимость для realtime один раз:
python3 -m pip install websockets- Запустить бэкенд и фронтенд вместе (по умолчанию API http://0.0.0.0:8000, WebSocket ws://0.0.0.0:8765, фронт http://127.0.0.1:5173):
npm start- Открыть http://127.0.0.1:5173/ в браузере. Зарегистрироваться, затем войти.
- Только бэкенд:
npm run start:backend
- Только фронтенд (нужен запущенный бэкенд):
npm run start:frontend