Skip to content

Aituar15/apt_spring_2016_hw1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

APT Spring 2016: Assignment 1

Assignment:

We will be working on simple web project. Your task is to write a small web app that will fetch currency data from http://public.mig.kz/ and return in JSON format.

Setup:

Tasks:

  • Clone your forked repository to your local machine
  • Run the server: python server.py
  • Make sure that it works: goto http://localhost:5000; It should return dummy static data {"eur": 415, "rub": 4.82, "usd": 378}.
  • Open the server.py file and see its contents.
  • Change index method so that it will fetch real data from http://public.mig.kz site.
  • You can see an example that fetches forks counter from this github repository. Run the server using python server.py and open http://localhost:5000/forks in your browser to test it.
  • Use git commit to commit your change. Use a meaningful message like "."
  • Use git push to send your change to your forked repository.
  • Look online to see if your change has been pushed.
  • Once you have finished upload the link of your forked repository to google classroom.

For those who wants more:

  • Deploy your application to heroku
  • Create an account on heroku.com
  • See the tutorial https://devcenter.heroku.com/articles/getting-started-with-python-o
  • Download the heroku toolbelt
  • Create heroku application using heroku create. Run it inside the project folder. Heroku toolbelt will crate a remote in your git project. See git remote -v
  • Deploy the project using git push heroku master
  • Open an url that heroku generated for you

Git commands you might need

  • git help
  • git clone REPO
  • git add FILE
  • git status
  • git commit
  • git commit -m "MESSAGE"
  • git log | less
  • git push
  • git pull

Documentation on libraries you need

Troubleshooting

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%