Project: Bander Snatch - Hoylake Computer Club Data Science Labs
Course: Unit 1, Sprint 2
- Navigate to Unit 1, Sprint 2 → Module 1: Onboarding & Planning
- Scroll to Local Setup section
- Click the link to the Bander Snatch Starter repository
- Click the Fork button
- Select your GitHub account
- Optional: Rename (e.g.,
bandersnatch-starter-yourname) - Click Create Fork
Create a project folder:
mkdir LabsDS
cd LabsDSClone your fork:
git clone https://github.com/your-username/bandersnatch-starter-yourname.git
cd bandersnatch-starter-yournameWindows without Git: Use WSL by running wsl first, then the git clone command.
code .Click "Trust the authors" when prompted.
Create virtual environment:
python -m venv venvActivate it:
# Windows
venv\Scripts\activate
# macOS/Linux
source venv/bin/activateYou should see (venv) in your terminal prompt.
Upgrade core tools:
python -m pip install --upgrade pip setuptools wheelInstall requirements:
pip install -r requirements.txtStart the Flask server:
python -m app.mainOpen http://127.0.0.1:5000 in your browser.
You should see: "Bander Snatch – Sprint Zero: Proof of Setup"
Create a .env file in the project root:
DB_URL=mongodb+srv://<username>:<password>@cluster0.xxxxx.mongodb.net/bandersnatch?retryWrites=true&w=majorityGet your MongoDB URL:
- Sign up at MongoDB Atlas
- Create a Shared Cluster
- Add your current IP address
- Copy connection string and replace
<password>with your actual password
Switch to Sprint 1 mode:
- Open
app/main.py - Change:
to:
SPRINT = "sprint_zero"
SPRINT = "sprint_one"
- Save the file
Restart the server:
# Press Ctrl+C to stop
python -m app.mainRefresh your browser to see "Bander Snatch – Sprint One"
Implement the following functions in app/data.py:
seed()reset()count()get_dataframe()get_html_table()
Workflow:
- Read the full ticket requirements in README.md
- Implement functions one by one
- Test in the browser after each implementation
- Data section will initially show "Count: None" until functions are complete
Questions? Ask in the #team-labs-current channel.
Setup Complete ✓
You now have a fully configured local environment ready for development.