The Accidents application
- Report accidents with location attribute
Created on, May 19th 2018
- Django
- Geodjango
- Jquery
- Leafletjs
- HTML5
- Css3
- Postgresql
- Postgis
- Git
- Python 3.6 should be installed
- django 1.11
- install other packages provided in the requirements.txt file
- Running the application.
- Visit this link to view on any browser.
- Ensure python3.6 is installed.
- Clone the repository git clone
- create a virtual environment virtualenv and activate source /bin/activate
- Install the required packages pip3 install -r requirements.txt
- Create a postgresql database.
- open the psql terminal by typing psql -h localhost -U
- Once on the psql terminal create the database ```CREATE DATABASE ``
- Create postgis extension
CREATE EXTENSION postgis
andCREATE EXTENSION postgis-topology
- Quit the shell \q
- Once the database is setup, make migrations, this creates database schemas for the application python manage.py -makemigrations
- Then create the actual database tables by python manage.py migrate
- Start the application by python manage.py runserver and open http://127.0.0.1:8000 in the browser.
Testing was done using python inbuild test tool called unittest to test database and form models.
- Implement geo-odk forms for data collection using android phones.
- Web mapping portal functionalities such as legend improving car simulation.
To get Further help you can visit the official python and django documentation.
MIT (c) 2017 muriithi derrick