
travel itinerary app
A full-stack backend application system built with FastAPI and SQLAlchemy to manage travel itineraries. Supports creating/viewing itineraries with day-wise hotels, transfers, and activities. Includes an MCP server that recommends itineraries (2–8 nights) for Phuket and Krabi. Features validation and auto API docs.
Repository Info
About This Server
A full-stack backend application system built with FastAPI and SQLAlchemy to manage travel itineraries. Supports creating/viewing itineraries with day-wise hotels, transfers, and activities. Includes an MCP server that recommends itineraries (2–8 nights) for Phuket and Krabi. Features validation and auto API docs.
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Travel Itinerary Management System
A full-stack application for managing travel itineraries for Thailand destinations, featuring a FastAPI backend and Next.js frontend.
Project Structure
``` travel-itinerary-system/ ├── backend/ # Python FastAPI backend ├── frontend/ # Next.js frontend └── README.md # Project documentation ```
Backend Setup
The backend is built with FastAPI, SQLAlchemy, and SQLite.
Prerequisites
- Python 3.8+
- pip
Installation
-
Navigate to the backend directory: ```bash cd backend ```
-
Create a virtual environment: ```bash python -m venv venv ```
-
Activate the virtual environment:
- Windows:
venv\Scripts\activate - macOS/Linux:
source venv/bin/activate
- Windows:
-
Install dependencies: ```bash pip install fastapi uvicorn sqlalchemy pydantic ```
Running the Backend
- Run the application using the run script: ```bash python run.py ```
This will:
- Seed the database with sample data
- Start the main API server on http://localhost:8000
- Start the recommendation server on http://localhost:8001
The API documentation will be available at http://localhost:8000/docs
Frontend Setup
The frontend is built with Next.js, React, and Tailwind CSS.
Prerequisites
- Node.js 16+
- npm or yarn
Installation
-
Navigate to the frontend directory: ```bash cd frontend ```
-
Install dependencies: ```bash npm install
or
yarn install ```
Running the Frontend
-
Start the development server: ```bash npm run dev
or
yarn dev ```
-
Open your browser and navigate to http://localhost:3000
Using the Application
- Browse Itineraries: View all available travel itineraries on the Itineraries page
- View Details: Click on an itinerary to see its detailed information
- Get Recommendations: Use the Recommendations page to get itineraries based on your preferred duration
- Create Itinerary: Create your own custom itinerary using the multi-step form
API Endpoints
GET /api/itineraries- Get all itinerariesGET /api/itineraries/{id}- Get a specific itineraryPOST /api/itineraries- Create a new itineraryGET /api/recommendations/{nights}- Get recommended itineraries for a specific duration
Database Schema
The application uses the following database models:
- Itinerary
- Accommodation
- Transfer
- Activity
See the Schema page in the frontend for detailed information.
Quick Start
Clone the repository
git clone https://github.com/maneeshmkp/travel-itinerary-appInstall dependencies
cd travel-itinerary-app
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.