Github repo for the Individual Project component of CSC309 Winter 2015 at UofT St. George.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ip
README.md
favicon.ico
pages-outline.txt
tables-outline.txt
template.css
template.html

README.md

CSC309 Winter 2015: Individual Project - MartinPetkov

Github repo for the Individual Project component of CSC309 Winter 2015 at UofT St. George.

General

URL of Repo: https://github.com/MartinPetkov/CSC309IndividualProjectMartinPetkov

This is a Django app, and the folder structure reflects this. It has one project called "ip" and one app called "ip_app".

Currently it can only be run locally and requires having django installed.

Instructions for running:

  • Install Django if not already installed, using the command: "sudo pip install Django"
  • In the ip_app directory, run the following command: "python manage.py runserver"
  • In a browser, go to: "localhost:8000/ip_app"

API Requests:

The two API requests are:

  • /ip_app/bestkideas/?api_token=<api_token>?&k=<k_value>&from_date=<YYYY-MM-DD>&to_date=<YYYY-MM-DD>/
  • /ip_app/industryDistributionGraph/?api_token=<api_token>/

Both API requests outlined in the instructions are GET requests that require an API token. Usually this would be secret but currently it is stored in the ip_app/views.py file and is nothing more than a previously generate string or 40 random characters. The API request for the best k ideas in the date span returns JSON data while the one for the distribution by industries returns a URL to a world-readable Plotly bar graph. A file with sample cURL statements exists in the ip/ip_app/ directory as an example.