The what-do-api package is the server support the main what-do-app. It manages users, locations, itinerary, and supports general queries around map functionality.
- Clone the repo
- Install dependencies using
yarn
- Copy the .env and set your parameters
- Run it with
yarn serve
Users will register/login via Google OAuth. They can browse the map or search for locations by name or type. They can search by random settings. They can create an itinerary (trip planning) by manually adding locations. They can create an itinerary completely at random by applying constraints. They can add friends and invite friends to join an itinerary.
- implement repository pattern to simplify route files
- Locations
- GET by id
- GET all
- GET by options
- PUT update by id
- POST create
- POST create by g-maps URL
- DELETE by id
- GET randomizer
- allow more verbose filtering options and inclusive traits
- Users
- POST (login) find or create by Google ID
- PUT update profile
- GET by id
- DELETE by id (deactivate)
- Itinerary
- GET by id
- GET by owner id
- POST create
- PUT update by id
- PUT add location
- Videos
- GET by user id
- GET by location id
- POST add to location
- PUT update video
- DELETE by id