{"id":27385833,"url":"https://github.com/jignesh6775/wanderlust-travel-planner-assignment","last_synced_at":"2026-06-23T13:32:00.967Z","repository":{"id":206443859,"uuid":"716418686","full_name":"Jignesh6775/Wanderlust-Travel-Planner-Assignment","owner":"Jignesh6775","description":"The Wanderlust Travel Planner API is a Flask-based backend application that empowers users to plan their trips, manage destinations, create itineraries, track expenses, and fetch weather information for a specified location. This README provides an overview of the API and its features.","archived":false,"fork":false,"pushed_at":"2023-12-20T10:03:48.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-20T02:59:14.597Z","etag":null,"topics":["flask","pyhton3","weather-api"],"latest_commit_sha":null,"homepage":"https://wanderlust-travel-planner-assignment.vercel.app","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/Jignesh6775.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}},"created_at":"2023-11-09T05:04:41.000Z","updated_at":"2023-11-09T18:01:04.000Z","dependencies_parsed_at":"2024-01-07T08:44:49.423Z","dependency_job_id":null,"html_url":"https://github.com/Jignesh6775/Wanderlust-Travel-Planner-Assignment","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"3939d5065b6a30273a5f36157d26ca3a51c2d131"},"previous_names":["jignesh6775/wanderlust-travel-planner-assignment"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Jignesh6775/Wanderlust-Travel-Planner-Assignment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jignesh6775%2FWanderlust-Travel-Planner-Assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jignesh6775%2FWanderlust-Travel-Planner-Assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jignesh6775%2FWanderlust-Travel-Planner-Assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jignesh6775%2FWanderlust-Travel-Planner-Assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jignesh6775","download_url":"https://codeload.github.com/Jignesh6775/Wanderlust-Travel-Planner-Assignment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jignesh6775%2FWanderlust-Travel-Planner-Assignment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34691740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["flask","pyhton3","weather-api"],"created_at":"2025-04-13T16:40:55.829Z","updated_at":"2026-06-23T13:32:00.945Z","avatar_url":"https://github.com/Jignesh6775.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wanderlust-Travel-Planner-Assignment\n\nThe Wanderlust Travel Planner API is a Flask-based backend application that empowers users to plan their trips, manage destinations, create itineraries, track expenses, and fetch weather information for a specified location. This README provides an overview of the API and its features.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Database Setup](#database-setup)\n- [Models](#models)\n- [Routes](#routes)\n  - [Destination Management](#destination-management)\n  - [Itinerary Planning](#itinerary-planning)\n  - [Expense Tracking](#expense-tracking)\n  - [Weather Route](#weather-route)\n- [Usage](#usage)\n- [Contributing](#contributing)\n\n## Installation\n\n1. Clone the repository to your local machine:\n\n   ```bash\n   git clone https://github.com/yourusername/travel-planner-app.git\n   ```\n\n2. Change to the project directory:\n\n   ```bash\n   cd travel-planner-app\n   ```\n\n3. Create a virtual environment (recommended) and activate it:\n\n   ```bash\n   python -m venv venv\n   source venv/bin/activate\n   ```\n\n4. Install the required Python packages:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n## Database Setup\n\nThe application uses a PostgreSQL database to store destination, itinerary, and expense data. To set up the database, make sure you have PostgreSQL installed and follow these steps:\n\n1. Create a new PostgreSQL database.\n\n2. Set the database URL as an environment variable. You can add it to a `.env` file:\n\n   ```\n   DATABASE_URL=postgresql://username:password@localhost/dbname\n   ```\n\n   Replace `username`, `password`, `localhost`, and `dbname` with your database credentials.\n\n3. Run the following command to create the required tables:\n\n   ```bash\n   python setup_database.py\n   ```\n\n## Models\n\nThe application defines the following data models:\n\n- Destination\n  - Fields: id, name, description, location\n\n- Itinerary\n  - Fields: id, destination_id, activity\n\n- Expense\n  - Fields: id, destination_id, description, amount\n\n## Routes\n\n### Destination Management\n\n- **Create a Destination**: `POST /destinations`\n- **Get All Destinations**: `GET /destinations`\n- **Get a Destination by ID**: `GET /destinations/\u003cint:destination_id\u003e`\n- **Update a Destination by ID**: `PUT /destinations/\u003cint:destination_id\u003e`\n- **Delete a Destination by ID**: `DELETE /destinations/\u003cint:destination_id\u003e`\n\n### Itinerary Planning\n\n- **Create an Itinerary**: `POST /itineraries`\n- **Get All Itineraries**: `GET /itineraries`\n- **Update an Itinerary by ID**: `PUT /itineraries/\u003cint:itinerary_id\u003e`\n- **Delete an Itinerary by ID**: `DELETE /itineraries/\u003cint:itinerary_id\u003e`\n\n### Expense Tracking\n\n- **Create an Expense**: `POST /expenses`\n- **Get All Expenses**: `GET /expenses`\n- **Update an Expense by ID**: `PUT /expenses/\u003cint:expense_id\u003e`\n- **Delete an Expense by ID**: `DELETE /expenses/\u003cint:expense_id\u003e`\n\n### Weather Route\n\n- **Get Weather Data**: `GET /weather?location=CityName`\n\n   Returns weather information for the specified location.\n\n## Usage\n\n1. Start the Flask application:\n\n   ```bash\n   python app.py\n   ```\n\n2. Access the API using a tool like `curl` or a web browser.\n\n3. Use the provided routes to manage destinations, itineraries, expenses, and check weather conditions.\n\n## Contributing\n\nContributions are welcome! Please submit issues or pull requests for any improvements or bug fixes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjignesh6775%2Fwanderlust-travel-planner-assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjignesh6775%2Fwanderlust-travel-planner-assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjignesh6775%2Fwanderlust-travel-planner-assignment/lists"}