Skip to content

zamuzakki/gis-portfolio

Repository files navigation

Simple GIS Portfolio App" Build Status

NOTE: This open source project is built using DjangoX as template.

Demo

Demo Video

Features

First-time setup

  1. Make sure Python 3.6x, Pip, and Virtualenv are already installed. See here and here for help.

  2. Make sure PostGIS (and PostgreSQL) is already installed (See here). You can also use Kartoza PostGIS docker. See here for help

  3. Because we want to run Django with PostgreSQL, we need to install required prerequisites.

$ sudo apt install libpq-dev python3-dev python3.6-dev
  1. Clone the repo and configure the virtual environment:
$ git clone https://github.com/zamuzakki/gis-portfolio.git
$ cd gis-portfolio
$ virtualenv --python=/usr/bin/python3.6 venv
$ source /venv/bin/activate
(venv) $ pip3 install -r requirements.txt
  1. Configure environment variables using .env file. Check .env_example here.

  2. Set up the initial migration for our custom user models in users and migrate the database.

(venv) $ python manage.py makemigrations users
(venv) $ python manage.py makemigrations
(venv) $ python manage.py migrate
  1. Create a superuser:
(venv) $ python manage.py createsuperuser
  1. Run test.
(venv) $ python manage.py test
  1. Confirm everything is working:
(venv) $ python manage.py runserver
  1. Load the site at http://localhost:8000.

  2. Create some Expertise object to be used in Profile via admin page

Additional Notes

  • This app uses django.core.mail.backends.console.EmailBackend by default, so instead of being sent, the email is printed on the console. You can update EMAIL_BACKEND to configure an SMTP backend
  • User created from signup will have is_staff field set to True, so they can login to admin page only to edit their own Profile.

About

Simple GIS portfolio

Resources

License

Stars

Watchers

Forks

Packages

No packages published