This is a project assigned by Udacity.
- Single page application
- Big map with muliple preselected locations.
- See weatherinformaion from current location in the map.
- Retrieve and locate nearby restaurants.
- Custom markers.
You can preview the application here:
Weather data collected from DarkSky.net
Restaurant-info collected from Yelp.com
Map by Google Maps
Built with Bootstrap, Knockout and jQuery
App built by Runar Kristoffersen, >as part of an assignment in the Full-Stack course at Udacity.
This project uses python3.
To install the required packages, do this:
pip install -r requirements.txt
You need to provide some basic configuration, like database-name for PSQL, client_id and client_secret.
You have two choices for how you wish to set these config-parameters, of which only one is required.
Create a file instance/config.cfg
.
the contents of this file shuld be in this format:
TESTING=False
DEBUG=True
YELP_CLIENT_ID="YOUR CLIENT ID HERE"
YELP_CLIENT_SECRET="YOUR CLIENT SECRET HERE"
export YELP_CLIENT_ID=YOUR CLIENT ID HERE
export YELP_CLIENT_SECRET=YOUR CLIENT SECRET HERE
After you have created that file, you can run this command to generate the database-structure, and insert some default-data. Note that the database itself will have to be created in advance.
python app.py --setup
python app.py