- An interactive Ruby Sinatra application that fetches a joke, answers your question using ChatGPT, and provides weather advice based on your location.
The application is deployed and can be accessed at the following URL: 👉Click here👈
Note it would take approcimately about 30s to fetch response from Openai API. Take a deep breath and wait... I know...
- Ruby installed (version 3.2.1)
- Sinatra gem installed
- API keys for Google Map, weather, and ChatGPT API
- Clone the repository:
git clone https://github.com/andrewp8/morning_drill.git
- Install required gems:
bundle install
- Set up API keys:
- Joke API : key NOT required.
- Checkout Google Maps API for more information. Key required.
- Check out Pirate Weather for more information. Key required. -Checkout ChatGPT API documentation for more information. Key required.
- Run the app:
bin/dev
- Open your browser and navigate to http://localhost:YOUR-PORT
- Contributions are welcome! Please fork the repository and submit a pull request.