In-vincible / Mykaarma

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to run a local copy:

Setting up PostGIS

$ createdb  <db name>
$ psql <db name>
> CREATE EXTENSION postgis;

How to Clone:

git clone https://github.com/In-vincible/Mykaarma.git

Create virtualenv using venv(new for python 3.6):

python3.6 -m venv karm
source karm/bin/activate

or

Create virtualenv using virtualenvwrapper

mkvirtualenv karm --python=python3.6
workon karm

Installing Dependecies:

(Enter project directory after activating the venv as described above)

pip install -r requirements.txt
pip freeze #to check the installed modules

Setting up environment for database:

(Use the same db_name as used while setting up postgis)

export DATABASE_URL=postgis://<username>:<password>@localhost/<db_name>

Migrate, insert data(from csv) inside databse, Run:

$ 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

Instructions for accessing admin portal:

creating admin user/pass

$ python manage.py createsuperuser

Admin Url

GET /admin

example url: 127.0.0.1:8000/admin/

About


Languages

Language:CSS 38.3%Language:Python 37.0%Language:HTML 21.3%Language:JavaScript 3.3%