Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application...

47
JPMorgan Chase Software Engineering Virtual Experience Setting up your dev environment for the program! Module 1 - Interface with a stock price data feed

Transcript of Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application...

Page 1: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

JPMorgan Chase Software Engineering Virtual Experience

Setting up your dev environment for the program!Module 1 - Interface with a stock price data feed

Page 2: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

We know your first time using Python, or setting up a web development environment at work, might be daunting.

Or feel like it uses technologies you haven’t used before, or might feel like it takes too long.

Setting up your dev environment for the program!

Page 3: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

So to help you out we’ve created this step-by-step guide to setting up your computer for this task.

A lot of the things you do here, you will also do when you set yourself up at an in-office internship too. Look like an amazing hire when you breeze through dev environment setup!

With this guide, the approximate time to get a development environment working for you is 10 minutes.

Setting up your dev environment for the program!

Page 4: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

To start, choose the application environment based on your device & current skill level

REPL (best if you have not set up a dev

environment before)

(Mac)Setting up your dev environment for task

1

(Windows)Setting up your dev environment for task

1

(Linux)Setting up your dev environment for task

1

Setting up your dev environment for the program!

Page 5: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

JPMorgan Chase Software Engineering Virtual Experience

Using Repl.it, an in browser code editor and compiler to do the JPMorgan Chase programModule 1 - Interface with a stock price data feed.

Approximately 3 minutes.

Page 6: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Using REPL● REPL is an online coding platform that developers can use to run simulated

applications / tests without having to worry about installing dependencies on their local machines

● For “Module 1 - Interface with a stock price data feed”, we’ve set up two REPL environments: Python2 Env and Python3 Env (click on the link of the environment you want to use and you should end up on a page like the one shown in the next slide)

Page 7: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

● To get started, read thru the “Instructions” file in the REPL by clicking on the “Instructions” file on the left hand side of the screen (or you can try the more visual instruction set we’ve relocated here)

● To make the files show, you must click the “File” icon. (also boxed in red)

Page 8: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

JPMorgan Chase Software Engineering Virtual Experience

Setting up your Mac for the JPMorgan Chase programModule 1 - Interface with a stock price data feed

Page 9: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Mac)● Use this method if you chose not to use the REPL method.

If your machine is running on Mac, follow this setup guide to get started.

● First you must have git installed in your system. To do this, follow this quick guide. You know you have installed successfully when you get a version output on your terminal by typing `git --version`:

Page 10: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Mac)● Once you have git installed, you need a copy of the application code you’ll be

working with on your machine. To do this, you must execute the following commands on your terminal:

git clone https://github.com/insidesherpa/JPMC-tech-task-1.gitgit clone https://github.com/insidesherpa/JPMC-tech-task-1-py3.git

● This command will download the code repositories from github to your machine in the current working directory of the terminal you executed the command in. Downloading the 2 repositories above will give you options later

Page 11: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Mac)● You’ll know you cloned successfully if you have the copy of the application

code on your machine:

note: the image above and in the next slide just does not contain the other repository but it should if you did the previous slides and execute the ls command. `ls` just lists the files/folders in the current directory

Page 12: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Mac)● To access the files inside from the terminal, just change directory by typing

the following commands:

cd JPMC-tech-task-1

ls

note: If you choose to work using python3 and your system has version python3 or above instead of python2.7.x, then choose to go into the other repository you downloaded instead. (otherwise, use the other repo above)

cd JPMC-tech-task-1-py3

note: `cd` means change directory. `ls` lists contents in the current directory

Page 13: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Mac)● To clarify, you’re only supposed to work on one of the repositories you cloned

/ downloaded into your system. It all depends on what Python version you have or will choose to have/use.

● Python is just a scripting / programming language we developers use quite often in the field. This application you’ll be working on uses it.

● We’ll discuss checking / installing Python in your system in the following slides

Page 14: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Mac)● Next, you’ll need to have Python 2.7 or Python 3 installed on your machine.

Follow the instructions here(python 2.7) or here (python 3) You can verify this on your terminal if you get a result like:

(any python 2.7.x should suffice but the latest 2.7.x is recommended; any python 3.x is fine, latest is recommended)

Execute the command below to verify what version you have:

python --version

Note: the image here is only of 2.7 but it should be similar if you check for python3

Sometimes your system might have it as

python3 --version

Page 15: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Mac)● Once you have Python 2.7 or Python3 installed, all you have to do get the

application up and running is to start the server and client scripts in two separate terminals.

Page 16: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Mac)● (note: just choose to run one server and one client; either the python 2 or python 3 version of server

and client applications. Run the commands below depending on your python version)

// If python --version = 2.7+, you must be in the JPMC-tech-task-1 // If python --version = 3+ , you must be in JPMC-tech-task-1-py3 directorypython server.pypython client.py

// If your system makes the distinction of python3 as `python3`,// you must be in JPMC-tech-task-1-py3 directorypython3 server3.pypython3 client3.py

Page 17: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Mac)● If you did not encounter any issues, your setup is finished. From here on, you

can make changes to the code and eventually arrive at the desired output.

● In some cases, dependency issues might arise like when you run `server.py`:

In this case, you must install pip first. Make sure you install pip for the right Python version you’re working with in this project.

Page 18: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Mac)● Installing pip nowadays usually involves downloading the get-pip.py script. If

you followed the instructions in the last slide, it usually involves using the command:curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

If you don’t have curl, just install it in your system. For mac, it’s this wayThen just run the script using python://if python --version = 2.7+ this will install pip for python2//if python --version = 3+ this will install pip for python3python get-pip.py

//if your system makes the distinction of python3 as `python3` then//doing the command below will install pip for python3python3 get-pip.py

Page 19: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Mac)● Then afterwards, you can run the following command on your terminal to

install the dependency:

pip install python-dateutil

Afterwards, you can rerun the server and then rerun the client

Page 20: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Mac)● If you did encounter any issues, please post your issue/inquiry here:

https://github.com/insidesherpa/JPMC-tech-task-1/issues or https://github.com/insidesherpa/JPMC-tech-task-1-py3/issues depending on what repository you chose to work in. When submitting a query, please don’t forget to provide as much context as possible, i.e. your OS, what you’ve done, what your errors is/are, etc (screenshots would help too)

Page 21: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

JPMorgan Chase Software Engineering Virtual Experience

Setting up your Windows for the JPMorgan Chase programModule 1 - Interface with a stock price data feed

Page 22: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Windows)● Use this method if you chose not to use the REPL method.

If your machine is running on Windows, follow this setup guide to get started (the examples here are on Windows X but it should be relatively similar for other versions)

● First you must have git installed in your system. To do this, follow this quick guide. You know you have installed successfully when you get this output on your command line (cmd). (any git version should suffice but the latest is recommended)

Page 23: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Windows)● Once you have git installed, you need a copy of the application code you’ll be

working with on your machine. To do this, you must execute the following command on your terminal:

git clone https://github.com/insidesherpa/JPMC-tech-task-1.gitgit clone https://github.com/insidesherpa/JPMC-tech-task-1-py3.git

● This command will download the code repositories from github to your machine in the current working directory of the terminal you executed the command in. Downloading the 2 repositories above will give you options later

Page 24: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Windows)● You’ll know you cloned successfully if you have the copy of the application

code on your machine:

note: the image above just does not contain the other repository but it should if you did the previous slides and execute the dir command. `dir` will list the contents of the current directory

Page 25: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Windows)● To access the files inside from the terminal, just change directory by typing:

cd JPMC-tech-task-1 note: The image on this slide just does not contain the other repository but it should if you did the previous slides and execute the dir command.

note: If you choose to work using python3 and your system has version python3 or above instead of python2.7.x, then choose to go into the other repository you downloaded instead. (otherwise, use the other repo above)

cd JPMC-tech-task-1-py3 note: `cd` means change directory

Page 26: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Windows)● To clarify, you’re only supposed to work on one of the repositories you cloned

/ downloaded into your system. It all depends on what Python version you have or will choose to have/use.

● Python is just a scripting / programming language we developers use quite often in the field. This application you’ll be working on uses it.

● We’ll discuss checking / installing Python in your system in the following slides

Page 27: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Windows)● Next, you’ll need to have Python 2.7 or Python3 installed on your machine.

Follow the instructions here (for python2), or here (for python3) You can verify this on your command line (cmd) if you get a result like:

(any python 2.7.x should suffice but the latest 2.7.x is recommended; any python 3.x is fine, latest is recommended)

Execute the command below to verify what version you have:

python --version

Note: the image here is only of 2.7 but it should be similar if you check for python3

Sometimes your system might have it as

python3 --version

Page 28: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Windows)● Once you have Python 2.7 or Python3 installed, all you have to do get the

application up and running is to start the server and client scripts in two separate cmds (see image in the next slide). Ensure that the command line wherein you run python server.py is on Administrator mode:

Page 29: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Windows)

Page 30: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Windows)● (note: just choose to run one server and one client; either the python 2 or python 3 version of server

and client applications. Run the commands below depending on your python version)

// If python --version = 2.7+, you must be in the JPMC-tech-task-1 // If python --version = 3+ , you must be in JPMC-tech-task-1-py3 directorypython server.pypython client.py

// If your system makes the distinction of python3 as `python3`,// you must be in JPMC-tech-task-1-py3 directorypython3 server3.pypython3 client3.py

Page 31: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Windows)● If you did not encounter any issues, your setup is finished. From here on, you

can make changes to the code and eventually arrive at the desired output.

● In some cases, dependency issues might arise like when you run `server.py`:

In this case, you must install pip first. Make sure you install pip for the right Python version you’re working with in this project.

Page 32: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Windows)● Installing pip nowadays usually involves downloading the get-pip.py script. If

you followed the instructions in the last slide, it usually involves using the command:curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

If you don’t have curl, just copy a python file, rename it to get-pip.py and replace all the contents of the python file to what’s in get-pip.py//if python --version = 2.7+ this will install pip for python2//if python --version = 3+ this will install pip for python3python get-pip.py

//if your system makes the distinction of python3 as `python3` then//doing the command below will install pip for python3python3 get-pip.py

Page 33: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Windows)● Then afterwards, you can run the following command on your terminal to

install the dependency:

pip install python-dateutil

Afterwards, you can rerun the server and then rerun the client

Page 34: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Windows)● If you did encounter any other issues, please post your issue/inquiry here:

https://github.com/insidesherpa/JPMC-tech-task-1/issues or https://github.com/insidesherpa/JPMC-tech-task-1-py3/issues depending on what repository you chose to work in. When submitting a query, please don’t forget to provide as much context as possible, i.e. your OS, what you’ve done, what your errors is/are, etc (screenshots would help too)

Page 35: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

JPMorgan Chase Software Engineering Virtual Experience

Setting up your Linux for the JPMorgan Chase programModule 1 - Interface with a stock price data feed

Page 36: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Linux)● Use this method if you chose not to use the REPL method.

If your machine is running on any flavor of linux, follow this setup guide to get started

● First you must have git installed in your system. You can do this by simply running the command below in your terminal (ctrl+alt+t):

● You’ll know you have git if you get a similar result on your terminal:

Page 37: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Linux)● Once you have git installed, you need a copy of the application code you’ll be

working with on your machine. To do this, you must execute the following command on your terminal:

git clone https://github.com/insidesherpa/JPMC-tech-task-1.gitgit clone https://github.com/insidesherpa/JPMC-tech-task-1-py3.git

● This command will download the code repositories from github to your machine in the current working directory of the terminal you executed the command in. Downloading the 2 repositories above will give you options later

Page 38: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Linux)● You’ll know you cloned successfully if you have the copy of the application

code on your machine:

note: the image above just does not contain the other repository but it should if you did the previous slides and execute the ls command. `ls` just lists the contents in the current directory

Page 39: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Linux)● To access the files inside from the terminal, just change directory by typing:

cd JPMC-tech-task-1

note: If you choose to work using python3 and your system has version python3 or above instead of python2.7.x, then choose to go into the other repository you downloaded instead. (otherwise, use the other repo above)

cd JPMC-tech-task-1-py3

note: `cd` means change directory

Page 40: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Linux)● To clarify, you’re only supposed to work on one of the repositories you cloned

/ downloaded into your system. It all depends on what Python version you have or will choose to have/use.

● Python is just a scripting / programming language we developers use quite often in the field. This application you’ll be working on uses it.

● We’ll discuss checking / installing Python in your system in the following slides

Page 41: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Linux)● Next, you’ll need to have Python 2.7 or Python 3 installed on your machine.

Follow the instructions here. (python2) or here (python3) For most cases, Linux environments already have Python 2.7 or Python3. You can verify this on your terminal if you get a result like:

(any python 2.7.x should suffice but the latest 2.7.x is recommended; any python 3.x is fine, latest is recommended)

Execute the command below to verify what version you have:

python --version

Note: the image here is only of 2.7 but it should be similar if you check for python3

Sometimes your system might have it as

python3 --version

Page 42: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Linux)● Once you have Python 2.7 or Python3 installed, all you have to do get the

application up and running is to start the server and client scripts in two separate terminals.

Page 43: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Linux)● (note: just choose to run one server and one client; either the python 2 or python 3 version of server

and client applications. Run the commands below depending on your python version)

// If python --version = 2.7+, you must be in the JPMC-tech-task-1 // If python --version = 3+ , you must be in JPMC-tech-task-1-py3 directorypython server.pypython client.py

// If your system makes the distinction of python3 as `python3`,// you must be in JPMC-tech-task-1-py3 directorypython3 server3.pypython3 client3.py

Page 44: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Linux)● If you did not encounter any issues, your setup is finished. From here on, you

can make changes to the code and eventually arrive at the desired output.

● In some cases, dependency issues might arise like when you run `server.py`:

In this case, you must install pip first. Make sure you install pip for the right Python version you’re working with in this project.

Page 45: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Linux)● Installing pip nowadays usually involves downloading the get-pip.py script. If

you followed the instructions in the last slide, it usually involves using the command:curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

If you don’t have curl, just install it in your system. For linux, it’s this wayThen just run the script using python://if python --version = 2.7+ this will install pip for python2//if python --version = 3+ this will install pip for python3python get-pip.py

//if your system makes the distinction of python3 as `python3` then//doing the command below will install pip for python3python3 get-pip.py

Page 46: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Linux)● Then afterwards, you can run the following command on your terminal to

install the dependency:

pip install python-dateutil

Afterwards, you can rerun the server and then rerun the client

Page 47: Setting up your dev JPMorgan Chase Software Engineering ... · To start, choose the application environment based on your device & current skill level REPL (best if you have not set

Setting up your dev environment for the program!

Local Setup (Linux)● If you did encounter any issues, please post your issue/inquiry here:

https://github.com/insidesherpa/JPMC-tech-task-1/issues or https://github.com/insidesherpa/JPMC-tech-task-1-py3/issues depending on what repository you chose to work in. When submitting a query, please don’t forget to provide as much context as possible, i.e. your OS, what you’ve done, what your errors is/are, etc (screenshots would help too)