{"id":26260931,"url":"https://github.com/amalsultanov/trip_planner","last_synced_at":"2026-05-08T07:34:51.864Z","repository":{"id":280237599,"uuid":"923506909","full_name":"AmalSultanov/trip_planner","owner":"AmalSultanov","description":"AI based Flask travel itinerary planner","archived":false,"fork":false,"pushed_at":"2025-06-23T19:13:15.000Z","size":68,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-30T17:40:38.854Z","etag":null,"topics":["ai","docker","docker-compose","flask","gemini","python","python3","sqlalchemy"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AmalSultanov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-28T11:22:07.000Z","updated_at":"2025-06-23T19:17:52.000Z","dependencies_parsed_at":"2025-03-02T07:27:05.692Z","dependency_job_id":"95d3ff10-3488-4164-9b45-24ed41102136","html_url":"https://github.com/AmalSultanov/trip_planner","commit_stats":null,"previous_names":["amalsultanov/trip_planner"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AmalSultanov/trip_planner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmalSultanov%2Ftrip_planner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmalSultanov%2Ftrip_planner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmalSultanov%2Ftrip_planner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmalSultanov%2Ftrip_planner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AmalSultanov","download_url":"https://codeload.github.com/AmalSultanov/trip_planner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmalSultanov%2Ftrip_planner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32771118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T02:36:36.067Z","status":"ssl_error","status_checked_at":"2026-05-08T02:36:07.210Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","docker","docker-compose","flask","gemini","python","python3","sqlalchemy"],"created_at":"2025-03-13T23:17:53.309Z","updated_at":"2026-05-08T07:34:51.854Z","avatar_url":"https://github.com/AmalSultanov.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI-Powered Travel Itinerary Planner\n\n## Overview\n\nThe **AI-Powered Travel Itinerary Planner** is a Flask-based web application that generates personalized travel plans using AI. Users can enter trip details, and the system suggests an itinerary, which can be viewed and downloaded as a PDF.\n\n## Features\n\n- AI-powered travel plan generation\n- User authentication using JWT tokens\n- Plan storage and retrieval from the database\n- PDF download for travel plans\n- Docker support for containerized deployment\n\n## Installation\n### Prerequisites\n\n- Python 3.10+\n- Docker\n- Docker Compose\n- A valid API key from [Google Gemini API](https://ai.google.dev/gemini-api/docs/api-key)\n- A registered account on [GeoNames](https://www.geonames.org) to obtain a username\n\n### Steps\n\n1. **Clone the Repository:**\n\n   ```bash\n   git clone https://github.com/AmalSultanov/trip_planner.git\n   cd trip_planner\n   ```\n\n2. **Set Up Environment Variables:**\n\n   - Copy the example environment file:\n     ```bash\n     cp .env.example .env\n     ```\n   - Open the `.env` file and fill in the required values:\n     ```ini\n     GEONAMES_USERNAME=\n     API_KEY=\n\n     FLASK_SECRET_KEY=\n\n     POSTGRES_DB=\n     POSTGRES_USER=\n     POSTGRES_PASSWORD=\n     POSTGRES_HOST=\n     POSTGRES_PORT=\n     SQL_DATABASE_URI=\n\n     FLASK_JWT_SECRET_KEY=\n     FLASK_JWT_ACCESS_TOKEN_MINUTES=\n     FLASK_JWT_REFRESH_TOKEN_DAYS=\n     FLASK_JWT_TOKEN_LOCATION=\n     ```\n    - Visit [GeoNames](https://www.geonames.org) to register and obtain your username, which will be the value for `GEONAMES_USERNAME`.\n    - Visit [Google Gemini API](https://ai.google.dev/gemini-api/docs/api-key) to get your API Key, which will be the value for `API_KEY`.\n    - The values for `FLASK_SECRET_KEY` and `FLASK_JWT_SECRET_KEY` can be generated using `secrets.token_hex([nbytes=None])`.\n    - The value for `SQL_DATABASE_URI` should be in the format:  \n      ```\n      postgresql://user:password@host:port/db_name\n      ```\n   - Values for `FLASK_JWT_ACCESS_TOKEN_MINUTES` and `FLASK_JWT_REFRESH_TOKEN_DAYS` should be numeric.\n\n3. **Run the Application with Docker Compose:**\n\n    ```bash\n    docker compose up --build\n    ```\n   \n    The app will be available at **[http://127.0.0.1:5001/](http://localhost:5001/)**.\n\n   **Or, install manually:**\n   \n   If you prefer to run the application without Docker, follow these steps:\n\n   - **Create a Virtual Environment:**\n     ```bash\n     python3 -m venv venv\n     ```\n   - **Activate the Virtual Environment:**\n     - On Windows:\n       ```bash\n       venv\\Scripts\\activate\n       ```\n     - On macOS/Linux:\n       ```bash\n       source venv/bin/activate\n       ```\n   - **Install Dependencies:**\n     ```bash\n     pip install -r requirements.txt\n     ```\n   - **Start Your Local PostgreSQL Server**\n   - **Run the Application:**\n     ```bash\n     flask run\n     ```\n   \n    The app will be available at **[http://127.0.0.1:5000/](http://localhost:5000/)**.\n\n## API Endpoints\n\n| Method | Endpoint               | Description                |\n|--------|------------------------|----------------------------|\n| `GET`  | `/`                    | Home page                  |\n| `POST` | `/plans`               | Generate a new travel plan |\n| `GET`  | `/plans/\u003cid\u003e/download` | Download plan as PDF       |\n| `POST` | `/login`               | User login                 |\n| `POST` | `/register`            | User registration          |\n| `GET`  | `/logout`              | User logout                |\n\n## Contributing\n\nContributions are welcome! Feel free to fork this repository and submit a pull request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famalsultanov%2Ftrip_planner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famalsultanov%2Ftrip_planner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famalsultanov%2Ftrip_planner/lists"}