WhatDo recommends locations such as restaurants, bars or activities based on user preferences, current weather and time. WhatDo was made as part of phase 2 of my software engineering bootcamp and makes heavy use of outside APIs and react.js.
- Install and start cors-anywhere - (google maps api calls unfortunately violate cors policy so this is required).
- Get API keys - 3 are required: Google Maps, OpenAI and OpenWeatherMap.
- Create a file called apiKey.js with this structure:
const keys = {
"gpt":"YOUR OPENAI KEY",
"weather":"YOUR OPENWEATHERMAP KEY",
"google":"YOUR GOOGLE MAPS KEY"
}
export default keys;
- Run npm install
- Run json-server --watch db.json
- Run npm start