This Django application receives data from an account and sends it to multiple destinations based on webhook URLs. The received data is stored in the database before being forwarded.
-
Clone the repository and navigate to the project directory.
git clone <repository_url> cd CustomerLabs
-
Create and activate a virtual environment.
python -m venv env source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies.
pip install -r requirements.txt
-
Apply migrations.
python manage.py makemigrations python manage.py migrate
-
Run the development server.
python manage.py runserver
-
Run the following commands in a terminal:
docker compose up
Now go to http://127.0.0.1:8000/api/docs
- Create Account:
POST /api/v1/accounts/
- Retrieve Account:
GET /api/v1/accounts/{account_id}/
- Update Account:
PUT /api/v1/accounts/{account_id}/
- Delete Account:
DELETE /api/v1/accounts/{account_id}/
- Create Destination:
POST /api/v1/destinations/
- Retrieve Destination:
GET /api/v1/destinations/{destination_id}/
- Receive Data:
POST /api/v1/server/incoming_data