# 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="/pages/-Lw\_IsDUKu2sa6KDel87" %}
[Postman](/cheat-sheets/postman.md)
{% endcontent-ref %}

### 2. Familiarize Yourself With Command Line Basics

{% content-ref url="/pages/-Lw\_J5gEPWGYjX\_aBA5n" %}
[Command Line](/cheat-sheets/command-line.md)
{% 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="/files/-MFRpWrlsNQfwuB\_K\_6N" %}
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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://backend-course.cornellappdev.com/additional-topics/hackourcampus.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
