946 B
946 B
Development Setup Guide
Prerequisites
- Python (version 3.10+)
- PostgreSQL (version 13+)
- Git
Database Setup
-
Install PostgreSQL and create a database named
calminer. -
Create schema
bricsium_platform:CREATE SCHEMA bricsium_platform; -
Load the schema from
structure.sql:psql -d calminer -f structure.sql
Backend Setup
- Clone the repo.
- Create a virtual environment:
python -m venv .venv - Activate it:
.venv\Scripts\activate(Windows) orsource .venv/bin/activate(Linux/Mac) - Install dependencies:
pip install -r requirements.txt - Set up environment variables (e.g., DB connection string in .env).
- Run migrations if any.
- Start server:
python main.pyoruvicorn main:app --reload
Frontend Setup
(TBD - add when implemented)
Running Locally
- Backend:
uvicorn main:app --reload - Frontend: (TBD)
Testing
- Run tests:
pytest