Manual Setup - optui/cbct-sim GitHub Wiki
Prerequisites
- Python 3.10+
- Node.js v22.15.0 or newer
- Angular v19 or newer
- cmake v3.23 or newer
- CUDA Toolkit 11.7 or newer
Backend Setup
-
Clone the repository
git clone https://github.com/optui/ProjeCT.git cd ProjeCT -
Copy environment template
cp backend/.env.example backend/.env -
Create and activate a virtual environment
cd backend python3 -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate pip install -e . -
Install LEAP
ProjeCT relies on LLNL's LEAP library. Check the LEAP installation guide.
git clone https://github.com/LLNL/LEAP.git cd LEAPmv setup.py setup_torch.py mv setup_ctype.py setup.py pip install . -
Run the backend
chmod +x scripts/run.sh scripts/run.sh:warning: On first run, GATE 10 datasets (~11 GB) download automatically.
-
View API documentation
- Swagger UI: http://127.0.0.1:8000/docs
- ReDoc: http://127.0.0.1:8000/redoc
Frontend Setup
-
Install dependencies
cd frontend npm install -
Run or build the frontend
-
Run:
ng serveNavigate to http://localhost:4200/
-
Build:
npm run build:prodMake sure your backend is running and navigate to http://127.0.0.1:8000/
-
Summary
- Backend Development: Run
scripts/run.shto start the FastAPI server with auto-reload - Frontend Development: Use
ng servefor hot-reload development - Production Testing: Build frontend with
npm run build:prodand test via backend server - API Testing: Use Swagger UI at
/docsfor interactive API testing