e27daf5828 | ||
---|---|---|
ansible | ||
backend | ||
config | ||
doc | ||
front-map | ||
front-vue | ||
.env.example | ||
.gitignore | ||
README.md | ||
schema.yml |
README.md
Readme for birdsView
Architecture
This Sofware is made up of different apps
Collect
Preserve
Process
Verify
Investigate
Inspirations
Install Python and Docker
Install the Dependencies
sudo apt install python3-pip docker.io
Create a virtual env for this project
python3 -m venv env
Create your Environment Variables
cp .env.example .env
Set the correct password and user names and then source the .env variables and the env file for python
source .env
source env/bin/activate
Then setup a virtual env for pip in the folder env
pip3 install -r requirements.txt
Setup a the Database with a volume which is persisted
docker volume create pg_data
docker run --name=postgis -d -e POSTGRES_USER=$PG_USER -e POSTGRES_PASS=$PG_PASS -e POSTGRES_DBNAME=$PG_NAME \
-e ALLOW_IP_RANGE=0.0.0.0/0 -p 5432:5432 -v pg_data:/var/lib/postgresql --restart=always kartoza/postgis:9.6-2.4
Change the directory to the Backend
cd birdsView
Next step is to create the database migration and then run the migrations
python manage.py makemigrations
python manage.py migrate
Now create a administrator for the website and provide a secure password
python manage.py createsuperuser --email admin@example.com --username admin
Now you can start the server
python manage.py runserver
python manage.py runserver_plus
To group all the application and output into PNG file
python manage.py graph_models vista -o imagefile_name.png
These are the URLs which currenty work:
Here is our API
Here is the Backend for the Admin
Here is the Admin Panel for the Telegram Bots