HackOurCampus

Contributors: Alanna Zhou

Pre-Workshop TODOs

Welcome to AppDev's Backend HackOurCampus workshop! Here are some things to complete before coming so that you're prepared (ノ◕ヮ◕)ノ*:・゚✧

The Fall 2020 course instructors, Alanna Zhou and Alicia Wang, will be leading this workshop--don't be afraid to find us on the hackathon Discord to reach out and ask us questions!

1. Install Postman

2. Familiarize Yourself With Command Line Basics

3. Install a Text Editor

Any text editor like Vim, Sublime Text, Atom, or Emacs all work just fine! Our course instructors and TAs prefer VSCode if you can't choose.

4. Install Python

Before you do anything, make sure that you have a version of Python3 installed (Python 3.7.6 is a good choice if you can't decide). Python2 may work, but you might run into some package issues.

Check your Python versions to make sure you'll be using the right one. Notice that if you have both Python2 and Python3, you may have to use python3 when you're running it as a command so that your computer knows only to use version 3.

$ python --version
Python 2.7.15

$ python -V
Python 2.7.15

$ python3 --version
Python 3.7.6

$ python3 -V
Python 3.7.6

5. Download Starter Code

Make sure to unzip this and that you're able to open this in your text editor once the workshop starts!

6. Install Packages

Once you unzip the starter code, you should have a folder named src with three items:

  • app.py

  • db.py

  • requirements.txt

We will be writing code in app.py and db.py. However, in order to write that code, we'll have to install some packages, which are included in requirements.txt. You can install them by running pip3 install -r requirements.txt. You should already have pip on your computer, but here are some commands to help if you don't:

MacOS & Linux

pip install -U pip

Windows

python -m pip install -U pip

Last updated