You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-11
Original file line number
Diff line number
Diff line change
@@ -13,19 +13,20 @@ How To Use This
13
13
---------------
14
14
15
15
1. Navigate over to https://developer.uber.com/, and sign up for an Uber developer account.
16
-
2. Register a new Uber application and make your Redirect URI http://localhost:7000/submit - `profile` and `history` OAuth scopes are required
17
-
3. Fill in the relevant information in the config.json file in the root folder and add your client id and secret as the environment variables UBER_CLIENT_ID AND UBER_CLIENT_SECRET. Run 'export UBER_CLIENT_ID="YOUR_CLIENT_ID"&&export UBER_CLIENT_SECRET="YOUR_CLIENT_SECRET"'
18
-
4. Run ‘pip install -r requirements.txt’ to install dependencies
19
-
5. Run ‘python app.py’
20
-
6. Navigate to http://localhost:7000 in your browser
16
+
2. Register a new Uber application and make your Redirect URI http://localhost:7000/submit - ensure that both the `profile` and `history` OAuth scopes are checked.
17
+
3. Fill in the relevant information in the `config.json` file in the root folder and add your client id and secret as the environment variables `UBER_CLIENT_ID` and `UBER_CLIENT_SECRET`.
18
+
4. Run `export UBER_CLIENT_ID="YOUR_CLIENT_ID"&&export UBER_CLIENT_SECRET="YOUR_CLIENT_SECRET"`
19
+
5. Run `pip install -r requirements.txt` to install dependencies
20
+
6. Run `python app.py`
21
+
7. Navigate to http://localhost:7000 in your browser
21
22
22
23
23
24
Testing
24
25
-------
25
26
26
-
1. Install the dependencies with ‘pip install -r requirements.txt’
27
-
2. Run the command ‘nosetests -v’
28
-
3. If you delete the fixtures, or decide to add some of your own, you’ll have to re-generate them, and the way this is done is by running the app, getting an auth_token from the main page of the app. Paste that token in place of the ‘test_auth_token’ at the top of the test_endpoints.py file, then run the tests.
27
+
1. Install the dependencies with `pip install -r requirements.txt`
28
+
2. Run the command `nosetests -v`
29
+
3. If you delete the fixtures, or decide to add some of your own, you’ll have to re-generate them, and the way this is done is by running the app, getting an auth_token from the main page of the app. Paste that token in place of the `test_auth_token` at the top of the `test_endpoints.py` file, then run the tests.
29
30
30
31
31
32
Development
@@ -34,16 +35,16 @@ Development
34
35
If you want to work on this application we’d love your pull requests and tickets on GitHub!
35
36
36
37
1. If you open up a ticket, please make sure it describes the problem or feature request fully.
37
-
2. If you send us a pull request, make sure you add a test for what you added, and make sure the full test suite runs with nosetests -v.
38
+
2. If you send us a pull request, make sure you add a test for what you added, and make sure the full test suite runs with `nosetests -v`.
38
39
39
40
Deploy to Heroku
40
41
----------------
41
42
42
-
Click the buttom below to set up this sample app on Heroku:
43
+
Click the button below to set up this sample app on Heroku:
After creating your app on Heroku, you have to configure the redirect url for your Uber OAuth app. Use a `https://{my-app-name}.herokuapp.com/submit`url.
47
+
After creating your app on Heroku, you have to configure the redirect URL for your Uber OAuth app. Use a `https://{my-app-name}.herokuapp.com/submit`URL.
0 commit comments