-
Notifications
You must be signed in to change notification settings - Fork 0
Development Quick Start
Michael Pisman edited this page Aug 7, 2025
·
1 revision
- Python 3.11 or higher
- MongoDB (local or cloud instance)
- Git
git clone https://github.com/csed-ucm/psephos.gitOr using GitHub CLI:
gh repo clone csed-ucm/psephospip install virtualenv
python -m venv venvActivate the virtual environment:
Linux/macOS:
source venv/bin/activateWindows:
venv\Scripts\activatepip install -r requirements.txtFor testing and development tools:
pip install -r test-requirements.txtpython main.py run --reload --port 8000Install the package in editable mode:
pip install -e .Then run:
unipoll-api run --reload --port 8000Create a .env file in the project root:
MONGODB_URL=mongodb://localhost:27017
SECRET_KEY=your-secret-key-here
ADMIN_EMAIL=admin@example.com
HOST=0.0.0.0
PORT=9000
RELOAD=True
ORIGINS=*Or use the interactive configuration wizard:
unipoll-api setupOnce running, visit:
- API Documentation:
http://localhost:9000/docs - Alternative Docs:
http://localhost:9000/redoc - Health Check:
http://localhost:9000/(should return API info)
- Read the Project Structure to understand the codebase
- Learn about Testing to run and write tests
- Check Libraries and Dependencies to understand the tech stack