Skip to content

rahulCode1/trip_planner_frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trip planner

A full-stack ai powered trip planner, where you can generate trip, save trip, update trip, delete trip & view trip details. Build with React frontend, Express/Node backend, MongoDB database and JWT-based authentication(Google OAuth2.0)


Demo Link

Live Demo


Login

Login with google


Quick Start

git clone https://github.com/rahulCode1/trip_planner_frontend.git
cd trip_planner_frontend
npm i 
npm run dev # or `npm start`


Techonologies

  • React JS
  • React Router
  • Node Js
  • Express
  • Mongodb
  • JWT

Demo Video

Watch a walkthrough (3-4 minutes) of all the major features of this app: Loom Video


Features

Home

  • Plan a trip by entring travel destination, budget & duration

My Trips

  • All saved trips

Trip Details

  • View full trip details (Trip destination & more.)
  • Can update trip
  • Compare original & updated trip
  • Save updated trip
  • Delete trip
  • Mark as complet trip

Authentication

  • User sign in with google
  • Protected routes for save trip, view saved trips, view trip details, update & delete trip

API Reference

POST /api/travel-planner

Generate trip
Sample Response:

{ destination, duration, budget }

POST /api/save-trip

Save trip
Sample Response:

{_id, destination, best_time, top_attractions...}

GET /api/saved-trip

Get all saved trips
Sample Response:

[{_id, destination, best_time, top_attractions...}, ...]

GET /api/tripId/trip-details

Trip details
Sample Response

{_id, destination, best_time, top_attractions...}

POST /api/update-trip/:tripId

Generate new trip based on changes
Sample Response:

{ destination, duration, budget }

PATCH /api/save-updated-trip/:tripId

Save updated trip
Sample Response

{_id, destination, best_time, top_attractions...}

DELETE /api/:tripId

Delete trip

PATCH /api/:tripId/mark-complete

Mark trip as complete

GET /auth/google

Call google OAuth2.0

GET /auth/google/callback

Save user
Generate JWT token

GET /user/me

Verify JWT token


Contact

For bugs or feature request, please reach out to rahul7497678@gmail.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors