- Runtime: Python 3.6
- Database: PostgreSQL
- Database Extention: PostGIS(for saving/searching spatial data efficiently)
- Setting Up GDAL/GEOS (https://docs.djangoproject.com/en/2.1/ref/contrib/gis/install/geolibs/)
$ createdb <db name>
$ psql <db name>
> CREATE EXTENSION postgis;
git clone https://github.com/In-vincible/Mykaarma.git
python3.6 -m venv karm
source karm/bin/activate
mkvirtualenv karm --python=python3.6
workon karm
(Enter project directory after activating the venv as described above)
pip install -r requirements.txt
pip freeze #to check the installed modules
(Use the same db_name as used while setting up postgis)
export DATABASE_URL=postgis://<username>:<password>@localhost/<db_name>
$ python manage.py migrate
$ python manage.py shell
> from endpoints.views import *
> create_modals("<path_of_file_relative_to_project_directory>") # This step may take 15-20 mins
$ python manage.py runserver
$ python manage.py createsuperuser
GET /admin
example url: 127.0.0.1:8000/admin/