Coder Social home page Coder Social logo

miftahf / cartoview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cartologic/cartoview

0.0 2.0 0.0 38.76 MB

Cartoview is a GIS Web Mapping Application Market. Cartoview extends the popular GeoNode SDI to provide the ability to create, share, and visualize GIS Web Mapping Applications very easily and very quickly from the browser without programming. Demo http://demo.cartoview.net - to install http://cartologic.github.io - to learn more

Home Page: http://www.cartoview.net

License: BSD 2-Clause "Simplified" License

Dockerfile 0.58% Makefile 0.50% Python 67.48% CSS 3.37% JavaScript 9.01% HTML 18.74% Shell 0.32%

cartoview's Introduction

GitHub stars GitHub forks Coverage Status Build Status GitHub license GitHub issues Twitter


What is Cartoview?

  • CartoView is a GIS Web Mapping Application Market.
  • Cartoview extends the popular GeoNode SDI to provide the ability to create, share, and visualize GIS Web Mapping Applications very easily and very quickly from the browser without programming.

Docker Installation:

  • install docker and docker-compose
  • clone cartoview and navigate to cartoview folder
  • on linux based OS use this command make run to setup and start cartoview in docker for the first time
  • on windows run the following commands to setup and start cartoview in docker for the first time:
    $ docker-compose up
    $ docker-compose exec cartoview python manage.py makemigrations
    $ docker-compose exec cartoview python manage.py migrate
    $ docker-compose exec cartoview python manage.py loaddata sample_admin.json
    $ docker-compose exec cartoview python manage.py loaddata default_oauth_apps.json
    $ docker-compose exec cartoview python manage.py loaddata app_stores.json
    $ docker-compose exec cartoview python manage.py loaddata initial_data.json
  • open your browser and type the following address 10.5.0.4
  • default user credentials admin/admin for cartoview and admin/geoserver for geoserver
  • you need to configure oauth in geonode and geoserver to do this please use this link
  • you can stop containers with make down or docker-compose down
  • you can get logs for each service in docker-compose.yml unsing the following command:
    • docker-compose logs --follow --tail=100 <service_name>
  • start the containers with docker-compose up -d or make up
  • stop the containers with docker-compose down or make down

How To Add Cartoview To Existing Geonode:

  • install cartoview with pip:
    • pip install cartoview==1.8.5 --no-cache-dir
    • open geonode settings.py and add the following lines at the end of the file:
        from cartoview import settings as cartoview_settings
        INSTALLED_APPS += cartoview_settings.CARTOVIEW_INSTALLED_APPS
        ROOT_URLCONF = cartoview_settings.ROOT_URLCONF
      
        APPS_DIR = os.path.abspath(os.path.join(PROJECT_ROOT, "apps"))
        PENDING_APPS = os.path.join(PROJECT_ROOT, "pendingOperation.yml")
        APPS_MENU = False
        # NOTE: please comment the following line of you want to use geonode templates
        TEMPLATES[0][
            "DIRS"] = cartoview_settings.CARTOVIEW_TEMPLATE_DIRS + TEMPLATES[0]["DIRS"]
        TEMPLATES[0]["OPTIONS"][
            'context_processors'] += cartoview_settings.CARTOVIEW_CONTEXT_PROCESSORS
      
        STATICFILES_DIRS += cartoview_settings.CARTOVIEW_STATIC_DIRS
      
        from cartoview import app_manager
        from past.builtins import execfile
        app_manager_settings = os.path.join(
            os.path.dirname(app_manager.__file__), "settings.py")
        execfile(os.path.realpath(app_manager_settings))
        load_apps(APPS_DIR)
        INSTALLED_APPS += CARTOVIEW_APPS
        for settings_file in APPS_SETTINGS:
            try:
                execfile(settings_file)
            except Exception as e:
                pass
    • restart your server

How to run tests

  • You Can run tests with the following command
      paver run_test

cartoview's People

Contributors

kamalseisy avatar ahmednoureldeen avatar gmioannou avatar ahmed-carto avatar ahmednosman avatar khaledboka avatar gamal-carto avatar amiramohiey avatar ismailsunni avatar jj0hns0n avatar tayyabsayyad avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.