A Django application designed to integrate with the Business Central API. This project includes RESTful APIs for managing customer data, Celery for asynchronous task processing, and custom functionalities for data synchronization.
- RESTful APIs: CRUD operations for customer data.
- Celery Integration: Background task processing for data synchronization.
- Environment Configuration: Secure management of sensitive settings using
.env
.
-
Clone the Repository
git clone https://github.com/Mishaa931/Django-Business-Central-API-Integration-and-Celery.git cd django-business-central-integration
-
Create and Activate a Virtual Environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Create and Activate a Virtual Environment
pip install -r requirements.txt
-
Set Up Environment Variables
Create a .env file in the root directory and add your configuration settings:
SECRET_KEY=your_secret_key DEBUG=True ALLOWED_HOSTS=127.0.0.1,localhost DB_NAME=your_db_name DB_USER=your_db_user DB_PASSWORD=your_db_password DB_HOST=localhost DB_PORT=5432
-
Run Migrations
python manage.py migrate
-
Start the Development Server
python manage.py runserver
- API Endpoints: Access the RESTful APIs at http://127.0.0.1:8000/api/.
- Celery Tasks: Use Celery for background tasks and data synchronization.