Coder Social home page Coder Social logo

timwangmusic / vacation-planner Goto Github PK

View Code? Open in Web Editor NEW
11.0 4.0 1.0 3.33 MB

Vacation Planner is a service for travelers to find enjoyable routes under budget and time constraints

Home Page: https://www.unwind.dev

License: Apache License 2.0

Go 67.88% Dockerfile 0.04% Shell 0.35% CSS 1.33% JavaScript 11.06% HTML 19.35%
travel optimization backend fun-project planning

vacation-planner's Introduction

Unwind

Unwind Logo

Motivation

Travel planning is vital for a great vacation, but it can be a tedious and frustrating process. Sifting through maps and countless online resources is not only time-consuming but often yields less-than-ideal results. Juggling time and budget constraints adds another layer of complexity. Our goal is to streamline this process, empowering travelers to create unforgettable vacations that fit their budgets and schedules. Our planning APIs simplify the experience by allowing users to input their desired destination, date, and time preferences. The service then generates customized travel plans tailored to their needs. While the initial version focuses on single-day trips and generic rankings, future iterations will incorporate personalized recommendations.

Features

  • Save your favorite plans in your profile
  • View trip details
  • Make a plan yourself by creating a template

Installation (Mac)

  • git clone the repository
  • update Homebrew with brew update
  • Install Redis using Homebrew with brew install redis
    • If Redis is already installed, execute brew upgrade redis

Development

  • Obtain Google Maps API key and set the MAPS_CLIENT_API_KEY=YOUR_GCP_API_KEY, REDISCLOUD_URL=redis://localhost:6379 environment variables.
  • Set environment variable ENVIRONMENT=DEVELOPMENT,SENDGRID_API_KEY=NO_KEY as we do not create mailers in development environment.
  • Start (in background) Redis service with brew services start redis.
  • Execute go run main/main.go to start the server.

Running with Docker Compose

  • Use command docker-compose up -d to start the containers.
  • Make sure to set up environment variables REDIS_URL=redis://redis:6379 and MAPS_CLIENT_API_KEY=YOUR_GCP_API_KEY. Note that using localhost for redis URL does not work.
  • To stop the containers, use the command docker-compose stop.

Production Deployment

  • The service can be deployed on any service platform. Particularly we have configured the code base and been deploying the service to Heroku.
  • For deployment to Heroku, simply execute git push heroku master.

Future Development Plans

  • Multi-city, multi-day planning

System Integration and External Services

  • Redis
  • Google Maps API
  • GeoNames Web Services

Tech Stack

  • Backend: Golang
  • Frontend: Bootstrap and Javascript

Star History

Star History Chart

vacation-planner's People

Contributors

dependabot[bot] avatar rwangsc18 avatar sananand007 avatar timwangmusic avatar xtpitt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

sananand007

vacation-planner's Issues

Remove orphan plans in Redis

When a new set of travel plans are generated, they can be found only through a parent Redis key, which expires in 24 hours (by current config). After the parent key expires, the plans cannot be referenced easily unless through saved plans list in the user profile. When users delete the references, they are likely to accumulate in the database. This is a flaw of the original design.

Allow users to like or dislike a plan

Add a thumb up and thumb down button besides each plan so that the server should remove the plan from next rendering for that user.

To support this feature, we have to increase the number of plans generated from the initial request. The reason is otherwise we have to keep generating new plans, which will bog down the server.

Incorrect sequence of locations in trip plan show page

Description:

For the new PR merged to master in 96179ae and service endpoint /plans/:id, there are some trip plans with incorrect sequences of locations.
For example, the restaurant location can be shown in the last instead of middle.

Things to debug

  • check original solutions and trip plans stored in Redis, and see if the location and place ID mapping is correct
  • check processing of new endpoint handler getTripDetails(), if any processing may have swapped the order of locations

Allow users to enter name of a POI and plan the rest of the day

Often times we start planning a day trip with one Point of Interest (POI) in mind. For instance, we are in New York City and want to visit the Empire state building. But we don't know what are the nearby POI to go that can fill in the day. Vacation planner should be able to fill the plan for the rest of the day for users.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.