Setting up your own Rideshare Website
1. Go to http://appengine.google.com and create a account with the website.
- You will be able to use an existing Google account.
2. After successfully logging in, click the “Create Application” button on the screen
Follow the verification process to create your application. You will be asked to pick an Application Identifier and an Application Title. Any other selections can be left at the default options.
- Remember the Application Identifier; you’ll need it later
Upon successfully creating the application, click the “dashboard” link.
3. Next download the Google Appengine Launcher from https://developers.google.com/appengine/downloads.
- Be sure to pick the correct version for your operating system under the “Google App Engine SDK for Python”
- Install the download, keeping all the default values.
- DOWNLOAD PYTHON?
Next you need to check out a copy of the code from our repository.
- Go to https://bitbucket.org/bnmnetp/rideshare/downloads
- Download the “rideshare.zip” file
- Extract the file contents
Now that you have the code, its time to make the necessary changes to the code in order to match your school.
In the “src” folder of the downloaded files, open “nateusers.py” in a text editor.
- In the “class LoginHandler(BaseHandler)” section of the file, locate the line “ if ‘Luther College’ in schoollist”. In this line you must replace “Luther College” with the name of your university as it appears on your university’s Facebook page. This ensures that only users from your school can use the website.
- In addition, you must create a Facebook App for your Rideshare website.
- Go to http://developers.facebook.com
- In the top toolbar, click on “Apps”
- In the upper right corner, click “Create New App”
- Give your app a name, and hit Continue.
- After continuing through the remaining screens, you will be brought to the admin page for your new application
- Click the “Website with Facebook Login” section, and input “http://APPLICATIONIDENTIFIER.appspot.com” (without quotes) into the “Site URL” space, using the Application Identifier we got in step 2 in place of “APPLICATIONIDENTIFIER”
- Click Save Changes
- Now the application is complete. Keep this page open, as you will need the “App ID” and “App Secret” found at the top of this page
- Copy the “App ID” and “App Secret” values from the Facebook App page into the “nateusers.py” file. You can find the “FACEBOOK_APP_ID” and “FACEBOOK_APP_ SECRET” values towards the top of the file.
- Save this file and exit
Next, locate the “app.yaml” file within the “src” folder and open it in a text editor.
- The first line should be changed to read “application: YourApplicationIdentifier”, supplying your appengine Application Identifier from step 2 as the “YourApplicationIdentifier” value.
- Change line 2 to read “version: 1”
- Save this file and exit
Next, locate the “main.py” file within the “src” folder and open it in a text editor.
- Find the line towards the top of the file that starts with “college = College(name…)
- Replace all the values for Luther College with values that match your university. For lat and lng, we recommend finding the values using http://itouchmap.com/latlong.html as a free service.
- Once again, use the AppID and Appsecret values from the Facebook Application page.
- Save the file and exit
Within the “src folder, open the “static” folder”. Next, locate the “functions.js” file within the “static” folder and open it in a text editor.
- Find the line starting with “var mycollege = new…”
- On this line, replace the values for Luther College with the values for your own school. The order should be school name, school address, latitude, and longitude. Be sure there is a comma between each value.
- Save the file and exit.
6. Open up the Google App Engine Launcher, and select your application. On the top bar of the Launcher, select deploy. You may be prompted to enter your login credentials from the website in step 1. This should deploy your application to the website!
7. In your browser, navigate to http://APPLICATIONIDENTIFIER.appspot.com, with “APPLICTIONIDENTIFIER” replaced with the Application Identifer from step 2. You should now be able to log in to your website and begin!