Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

runar-rkmedia/neighborhood_map

Repository files navigation

Neighborhood-map

This is a project assigned by Udacity.

Highlighted features:

  • 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:

Attribution

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.

Getting up and running

This project uses python3.

To install the required packages, do this:

pip install -r requirements.txt

Setting config-parameters

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.

Option 1. Store them in a file

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"

Option 2. OS-envirnment variables.

export YELP_CLIENT_ID=YOUR CLIENT ID HERE
export YELP_CLIENT_SECRET=YOUR CLIENT SECRET HERE

Initiate default-database

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

Running the app

python app.py

About

Udacity assignment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published