Giter Site home page Giter Site logo

martenson / supervizor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from otevrena-data-mfcr/supervizor

0.0 2.0 0.0 480 KB

Vizualizace výdajů státní správy

License: GNU General Public License v3.0

ApacheConf 0.36% HTML 16.03% PHP 60.51% JavaScript 15.62% CSS 7.48%

supervizor's Introduction

Supervizor Nette implementace

Supervizor je aplikace na vizualizaci výdajů státní správy, kerou vytvořili pracovníci Ministerstva financí České republiky. Uvítáme další použití i úpravy/opravy zdrojového kódu, proto ho dáváme k dispozici pod licencí GNU GPL v3

Header

Requirements

  • PHP 5.6>
  • MySQL / MariaDB / PostgreSQL
  • Nginx / Apache
  • Linux

Install

  1. composer install
  2. bower install
  3. create /app/config/config.local.neon with own parameters, from /app/config/config.local.neon.example template
  4. run chmod -R a+rw temp log www/webtemp
  5. run php www/index.php orm:s:c to create default database schema
  6. run php www/index.php orm:default-data:load to load default data. WARNING: this command DROP ALL DATA IN DATABASE!
  7. run php www/index.php importer:import:all to import mf2016 data configured in app/config/importer.neon (you can configure your imports there)

Your own data source

For you own data source you will need two things:

  1. Create your own data parser in extensions/Importer/parsers/, you can use Mfcr.php as example
  2. Configure your data sources in config/importer.neon :
importer:
  target: App\Model\ImportTarget
  imports:
    # here you can configure your custom imports
    mf: #Import group key
        title: "Ministerstvo financí" #Import group name
        default: true # Is default import group ?
        datasets: # List of datasets
            mf2016: # Dataset key
                title: "Rok 2016" #Data set title
                description: "Přehled faktur Ministerstva financí" #Data set description
                source: "http://data.mfcr.cz/cs/api/3/action/resource_show?id=aec18a6a-0d8f-49a4-a8e7-ae0fbd32125f" #Data set source, it can be file:// http:// ftp://
                homepage: "http://data.mfcr.cz/cs/dataset/prehled-faktur-ministerstva-financi-cr" # Homepage of source (if any, used only for info)
                parser: Extensions\Importer\Parsers\Mfcr #Parser used to parse this dataset
                default: true # Is default ? (data from this dataset will be shown as default configuration when landing on homepate)

Devel

  • run php www/index.php orm:validate-schema to validate doctrine schema

supervizor's People

Contributors

smallhillcz avatar salamek avatar simi 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.