-
Notifications
You must be signed in to change notification settings - Fork 0
Installation Guide
Agatha Bahati edited this page Apr 6, 2025
·
4 revisions
- Docker & Docker Compose: For running the app and tests.
- Python 3.11+: For local development outside Docker.
- RabbitMQ: Message broker for Celery tasks.
- PostgreSQL: Production database (SQLite for testing).
-
Clone the Repository:
git clone https://github.com/MoigeMatino/pulse-check.git cd pulse-check -
Set Up Environment: Create a
.envfile:DATABASE_URL=postgresql://user:password@localhost:5432/db_name RABBITMQ_URL=amqp://guest:guest@localhost:5672// -
Run with Docker Compose:
docker-compose up --build
-
Initialize Database: Apply migrations:
docker-compose exec app alembic upgrade head -
Verify: Check the API:
curl http://localhost:8000/docs
- Install dependencies:
pip install -r requirements.txt
- Run RabbitMQ separately (e.g., via Docker):
docker run -d -p 5672:5672 rabbitmq:3
- Initialize DB with Alembic (not SQLModel.create_all):
alembic upgrade head
- Start the app:
uvicorn app:app --reload