# HackOurCampus

## Pre-Workshop TODOs

Welcome to AppDev's Backend [HackOurCampus](https://hackourcampus.com/) 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](https://discord.gg/fK3JP4C) to reach out and ask us questions!

### 1. Install Postman

{% content-ref url="../cheat-sheets/postman" %}
[postman](https://backend-course.cornellappdev.com/cheat-sheets/postman)
{% endcontent-ref %}

### 2. Familiarize Yourself With Command Line Basics

{% content-ref url="../cheat-sheets/command-line" %}
[command-line](https://backend-course.cornellappdev.com/cheat-sheets/command-line)
{% endcontent-ref %}

### 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.

{% embed url="<https://code.visualstudio.com/download>" %}

### 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.&#x20;

{% embed url="<https://www.python.org/downloads/>" %}

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!

{% file src="<https://3452473873-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lu9Zw53dmTuhqAq-8K8%2F-MFRpPQfyQ9fhcxoIo2E%2F-MFRpWrlsNQfwuB_K_6N%2Fsrc.zip?alt=media&token=4e7ec117-6616-4a13-a561-9abef42ebb9b>" %}
Starter Code
{% endfile %}

### 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

```bash
pip install -U pip
```

#### Windows

```bash
python -m pip install -U pip
```
