Code Monkey home page Code Monkey logo

ysa-presentation's Introduction

YSA-presentation

Slide decks and example code for Jack's September YSA presentation

Getting Started

Step 1

If you're on Windows, it is highly recommended that you download the Git Bash Shell before starting. You can do some of the similar things in cmd, but it's just not the same. https://git-scm.com/downloads

If you're on Mac you can use the terminal. If you're on Linux, bonus cookies to you.

In bash, run

pip --version

to make sure you have pip installed. If not, you'll need to start by installing python. https://www.python.org/downloads/. I'm using 3.6.5 as my global interpreter for this project. If you use an older one (like python 2) I can't guaruntee if it will work.

Step 2

The next step is to clone this git repo, which you can do with:

git clone https://github.com/Novacer/YSA-presentation.git
cd YSA-presentation  # if the clone worked properly you should be able to go to this folder

Alternatively, you can fork it into your own github account as well.

Step 3

To install the dependencies needed to run this project you can do

pip install -r requirements.txt

which will install the python stuff globally. Some of you may want to make a virtual environment so that these new dependencies don't conflict with your current python installation. (This is purely optional, though in software development it is seen as a best practice.) Here is how you can do it.

Step 3.5

If you want to work on the Angular UI, you'll need to install the node_modules for it as well. To do this do

cd example-ui/angular-frontend
npm install

Once you have all the dependencies installed you are ready to go.

Actually running the stuff.

I've conveniently written two bash scripts that will do most of the work for you. If you just want to run the APIs, do

# Method 1
source run_backend.sh

# Method 2
. run_backend.sh

The two methods are equivalent in bash.

You can run the angular in the same way, replacing run_backend.sh with run_frontend.sh

Feel free to read the .sh files to understand how this actually works.

Notes about API Keys

In first_api.py you may have noticed the line

weather = requests.get("http://api.openweathermap.org/data/2.5/weather?q=%s&APPID=API_KEY_HERE" % city)

For this endpoint to work properly you need to make an account at https://openweathermap.org/api and paste your API key where it says API_KEY_HERE

ysa-presentation's People

Contributors

novacer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.