npm install
npm startThis will:
- β
Install
concurrentlypackage - β Start the backend server (Python/FastAPI on port 8000)
- β Start the frontend dev server (React/Vite on port 5173)
- β Run both simultaneously in one terminal
# Start both frontend and backend
npm start
# Start only frontend
npm run dev
# Start only backend
npm run backend
# Install all dependencies (frontend + backend instructions)
npm run install:all# Start both (from frontend directory)
npm run start:all
# Start only frontend
npm run dev
# Start only backend
npm run backend-
Install root dependencies:
cd GenLab npm install -
Install frontend dependencies:
cd frontend npm install -
Install backend dependencies:
cd backend pip install -r requirements.txt -
Start everything:
cd .. # Back to GenLab root npm start
When you run npm start, you'll see output from both servers:
[backend] Starting Protein Architect Backend
[backend] INFO: Uvicorn running on http://127.0.0.1:8000
[frontend] VITE v5.0.8 ready in 500 ms
[frontend] β Local: http://localhost:5173/
Press Ctrl+C once to stop both servers.
npm install- Make sure Python is installed and in your PATH
- On Windows, you might need to use
pyinstead ofpython
- Backend uses port 8000
- Frontend uses port 5173
- If either is in use, close the other application
If you prefer separate terminals:
Terminal 1 (Backend):
cd backend
python run_backend_simple.pyTerminal 2 (Frontend):
cd frontend
npm run devBut npm start is easier! π