-
First, you must download the following:
- download Django from the Django website, ideally for python-3: https://www.djangoproject.com/
- pip install the packages: 'pyserial, requests, and numpy' (if in a later step a ModuleNotFoundError occurs, download the package listed with the error)
-
Download the repo to a dedicated directory, ideally called Reach-Sentinel-Lite
git init
git clone https://github.com/Bruin-Spacecraft-Group/Reach-Sentinel-Lite
-
You should now see the files in your directory
-
Navigate into the repo you just cloned, then go into reachSentinelLite
- Check to see if it contains the bin folder
- If it does, run
source bin/activate
-> this activates the virtual environment
-
To start the server, run:
python3 manage.py runserver
- DO NOT USE
python
to use python2 - the code is written in python3
- DO NOT USE
-
Open a browser and navigate to: http://127.0.0.1:8000/dashboard/
-
If your website isn't working, it may mean that the database has not been initialized.
python3 manage.py makemigrations
python3 manage.py migrate
-
Final step is to open up a new terminal window and run
python3 manage.py shell
, thenexec(open("main.py").read())
- This establishes a connection to the ground Arduino
- Saves incoming data to database
-
Process incoming data and save to database
-
Beautify the dashboard -> maybe check BruinSpace branding team?