The scouting app of Nerd Herd 687.
Download MongoDB Community Edition
Make sure you have MongoDB Compass installed, as well as the path to the mongod.exe (install for compass and all needed EXEs are within the download)
Create a folder to store the database (you can just create a folder database in the repository folder)
To start the database on Windows:
\path\to\exe\mongod.exe --dbpath \path\to\databaseor on Mac:
/path/to/executable/mongod --dbpath /path/to/databaseOpen compass and create a connection (the default URI should be correct)
Once you verify it works, create the file "mongoDB" in the secrets folder and paste in the URI
Place your MongoDB connection string in mongoDB and Compass, either beginning in mongodb:// or mongodb+srv://. For more information, visit the MongoDB Documentation.
Note: You only have to set up the secret key and compass connetion the first time.
Create a file secretKey in the secrets folder and put whatever text you want in there. This acts as the key for all of the encryption.
Note: You only have to set up the secret key the first time.
If you don't already have one, create a The Blue Alliance account
Under account, scroll to Read API Keys and create a new key.
Create a new file theBlueAlliance in the secrets folder and paste in the key.
Note: You only have to set up the API key the first time.
Make sure you have Python 3 installed.
Create a terminal in the directory NerdScout is located in. Then, make a virtual environment and activate it.
For Mac:
python3 -m venv .venv
source .venv/bin/activateFor Windows:
py -m venv .venv
.venv\Scripts\activateNow install the required packages.
pip install -r requirements.txtYou can deactivate the virtual environment with the deactivate keyword.
deactivateNote: You only have to create the virtual environment and install the requirements the first time.
Before running, ensure:
- All required secrets are added. Check /secrets/README.md for the full list.
- The database is running
- The virtual environment is active
Run the script using:
flask runor use debug mode.
flask run --debugThis should open a development server and display an IP Address. Navigate to this IP address to view NerdScout.