ar10_tracker_demo.mp4
A web app to collect, store and visualise 10m Air Rifle Training and Competition Data.
The web app provides the following functionality:
- Create, Read, Update and Delete 10m Air Rifle Competition and Training data
- View a summary of the Competition and Training data in the main dashboard
- Import and export data in csv format for compatibility with existing data analysis workflows
- Python version >= 3.11.0
-
Clone the repo
git clone git@github.com:michaelwknott/ar10-tracker.git
-
Create a virtual environment
python -m venv .venv --prompt .
-
Activate your virtual environment
.venv/bin/activate
-
Install requirements
python -m pip install requirements.txt
-
Install Postgres. See the following link for installing on Linux
-
Create a Postgres database. See the following blog post
-
Rename
.env_template
mv .env_template .env
-
Update
.env
file with required environment variables. Example environment variables are used below. Ensure you update with your own variablesSECRET_KEY="django-insecure-z_)j=_h=5fmfob9l#vm)p)(#w7-w-v!p57eh^=36-jfmcoaf7t" DEBUG=True ALLOWED_HOSTS=127.0.0.1 DATABASE_URL=postgres://myuser:mypassword@127:0.0.1:5432/ar10_tracker
-
Run Django migrations
python manage.py migrate
-
Create Django superuser
python manage.py createsuperuser
- Optional: Populate database with dummy data
python manage.py dbtestdata
- Run the web app locally
python manage.py runserver
- Add demo to README.md
- Add htmx to avoid fullpage reload on delete
Distributed under the MIT License. See LICENSE
for more information.