This is a simple Python/Flask app that uses the Uber API to request the estimates of Uber services according to a user's starting and ending addresses. The app also calculates a user's blood alcohol content (BAC), and suggests the user call an Uber if their BAC is over the legal limit. If the user says an Uber is too epensive, the app compares the estimates to the average price of a DUI.
- Navigate over to https://developer.uber.com/, and sign up for an Uber developer account.
- Register a new Uber application and make your Redirect URI
http://localhost:8000/submit
- ensure that both theprofile
andhistory
OAuth scopes are checked. - You will have to create your own yaml file with your client id and secret as environmental variables. You will also have to add a secret key for the app session. See the yaml example.
- Run
pip install -r requirements.txt
to install dependencies - Run
python app.py
- Navigate to http://localhost:8000 in your browser
Attempted deployment, still working out bugs. I think I probably have my environment variables set up incorrectly. I AM SO CLOSE THOUGH!
Eventually, the app will be able to request an Uber for the user.