Skip to content

eugene-lok/journeo-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Journeo


About

This is the backend for Journeo, an LLM-based travel itinerary planner. It allows users to chat with an LLM chatbot to generate personalized travel itinerary with OpenAI's GPT. Locations from this itinerary are displayed on an interactive map.

Key Features:

  • Integrates OpenAI's API for dynamic itinerary generation based on user input.
  • Utilizes Google's Geocoding API and Places API to asynchronously geocode and obtain details for each place generated.

Technologies Used

  • Python
  • FastAPI
  • Mapbox Geocoding API

Setup / Installation

Note: This is only the backend of the application. You will need to set up and run the frontend as well for full functionality.

  1. Create a Mapbox account and obtain a Mapbox access token.

  2. Create an OpenAI account and obtain an OpenAI API Key.

  3. Clone the repository:

    git clone https://github.com/eugene-lok/journeo-backend.git
  4. Create a virtual environment in the root of the project:

    python3 -m venv env
    • On Linux/Mac:
    source env/bin/activate
    • On Windows:
    \env\Scripts\activate
  5. Install dependencies:

    pip install -r requirements.txt
  6. Set up environment variables:

    • Create a .env file in the root of your project with the following keys:
    MAPBOX_ACCESS_TOKEN=your_mapbox_access_token
    OPENAI_API_KEY=your_openai_api_key
  7. Run the FastAPI server:

    uvicorn app.main:app --reload
  8. The API will be accessible on http://localhost:8000. Ensure the frontend has been setup and is running as well.


About

An LLM-powered travel planner.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages