-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Atoui Abderahman Yakoub edited this page Sep 15, 2024
·
8 revisions
This project is a Django application integrated with HubSpot. It includes a CI/CD pipeline using GitHub Actions to ensure code quality and automate testing.
- Python 3.12 or higher
- Docker
- Git
-
Clone the Repository:
git clone https://github.com/ATOUIYakoub/Django-hubspot-integration.git cd crm_analytics
-
Create a Virtual Environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install Dependencies:
pip install --upgrade pip pip install -r requirements.txt
-
Run Migrations:
python manage.py migrate
-
Run the Development Server:
python manage.py runserver
-
Access the Application:
- Open your browser and go to
http://localhost:8000
.
- Open your browser and go to
This section provides instructions on how to use the application.
- Open your browser and go to
http://localhost:8000
.
- Lead Management: View, create, update, and delete leads.
- Integration with HubSpot: Sync leads with HubSpot.
-
View Leads:
- Navigate to the leads page to view all leads.
-
Update a Lead:
- Click on a lead to update its details.
-
Sync with HubSpot:
- Use the provided API endpoints to sync leads with HubSpot.
This project uses GitHub Actions for Continuous Integration (CI) and Continuous Deployment (CD).
The CI/CD pipeline is defined in the .github/workflows/ci.yml
file.
--health-timeout 5s
--health-retries 5
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test_db
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
python manage.py migrate
python manage.py test