Getting Started
Getting Started with CloudAlt Backend
Section titled “Getting Started with CloudAlt Backend”Prerequisites
Section titled “Prerequisites”- Python 3.11+
- PostgreSQL (or Supabase account)
- GCP account (for Firestore and Cloud Storage)
- Git
Installation
Section titled “Installation”1. Clone Repository
Section titled “1. Clone Repository”git clone https://github.com/xavierdurant/cloudalt-backend.gitcd cloudalt-backend2. Set Up Virtual Environment
Section titled “2. Set Up Virtual Environment”For Stays Service (Port 8000)
Section titled “For Stays Service (Port 8000)”cd stays/python -m venv venvsource venv/bin/activate # On Windows: venv\Scripts\activatepip install -r ../requirements.txtFor Discovery Service (Port 8001)
Section titled “For Discovery Service (Port 8001)”cd discovery/python -m venv venvsource venv/bin/activatepip install -r ../requirements.txtFor Services (Port 8002)
Section titled “For Services (Port 8002)”cd services/python -m venv venvsource venv/bin/activatepip install -r ../requirements.txt3. Configure Environment Variables
Section titled “3. Configure Environment Variables”Copy the example environment file:
cp .env.example .envEdit .env with your credentials (see Environment Variables).
4. Run Migrations
Section titled “4. Run Migrations”python manage.py migrate5. Create Superuser
Section titled “5. Create Superuser”python manage.py createsuperuser6. Start Development Server
Section titled “6. Start Development Server”python manage.py runserver 8000 # For stayspython manage.py runserver 8001 # For discoverypython manage.py runserver 8002 # For servicesVerify Installation
Section titled “Verify Installation”Visit http://localhost:8000/admin/ to access Django admin.