A Django-based travel advisory application that uses AI21's Maestro to provide intelligent travel recommendations and advice.
- Create and manage travel destinations
- Generate AI-powered travel advice using AI21's Maestro
- Get comprehensive information about:
- Safety
- Weather and best time to visit
- Cultural considerations
- Transportation options
- Must-see attractions
- Clone the repository:
git clone <repository-url>
cd travel-advisor
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Create a
.env
file in the project root and add your AI21 API key:
AI21_API_KEY=your_api_key_here
DJANGO_SECRET_KEY=your_django_secret_key_here
- Run migrations:
python manage.py migrate
- Run the development server:
python manage.py runserver
GET /api/destinations/
: List all destinationsPOST /api/destinations/
: Create a new destinationGET /api/destinations/{id}/
: Get destination detailsPOST /api/destinations/{id}/generate_advice/
: Generate AI-powered travel adviceGET /api/advice/
: List all travel adviceGET /api/advice/{id}/
: Get specific travel advice
Run the test suite:
pytest
- Django
- Django REST Framework
- AI21 Maestro
- Python-dotenv
- Requests
- Pytest
MIT License