Giter Site home page Giter Site logo

pemiluAPI

Build Status

2014 Pemilu API

Installation

The steps below assume you are working on a Ubuntu machine.

Apache2 and PHP5

  1. Install Apache2

    $ sudo apt-get install -y apache2
  2. Enable mod_rewrite and mod_headers

    $ sudo a2enmod rewrite
    $ sudo a2enmod headers
    $ sudo service apache2 restart
  3. Install PHP5

    $ sudo apt-get install -y php5 libapache2-mod-php5 php5-cli php5-curl

    For Ubuntu Saucy or above (>= 13.10), also install the following package:

    $ sudo apt-get install php5-json

Application

  1. Install Git

    $ sudo apt-get install -y git
  2. Clone this project

    $ git clone https://github.com/pemiluAPI/pemiluAPI.git
  3. Go to the project directory and dowload Composer

    $ cd pemiluAPI
    $ wget http://getcomposer.org/composer.phar
  4. Install the framework's dependencies

    $ php composer.phar install
  5. Set the web directory as the DocumentRoot. Modify the /etc/apache2/sites-available/default file as follow

    DocumentRoot /var/www/pemiluAPI/web
    <Directory /var/www/pemiluAPI/web>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride all
        Order allow,deny
        allow from all
    </Directory>
    

    Please note that your modification need may vary depending on your Apache2 setup.

  6. Restart Apache2

    $ sudo service apache2 restart
  7. Open up http://127.0.0.1/status and you should see message

    {"error":{"type":"invalid_request_error"}}
    
  8. Open up http://127.0.0.1 and you should see

    {"error":{"message":"Unrecognized request URL (GET: \/).  Please see http:\/\/developer.pemiluapi.org\/.","type":"invalid_request_error"}}
    

Pemilu API's Projects

anggaran-pilkada-endpoint icon anggaran-pilkada-endpoint

Anggaran PILKADA EndPoint adalah layanan yang menyediakan informasi mengenai Anggaran PILKADA pada tahun 2015.

badan-adhoc-endpoint icon badan-adhoc-endpoint

Badan Adhoc EndPoint adalah layanan yang menyediakan informasi mengenai data badan Adhoc pada PILKADA 2015.

berita-pilkada-endpoint icon berita-pilkada-endpoint

Berita PILKADA EndPoint adalah layanan yang menyediakan informasi mengenai berita pada PILKADA 2015.

calon-api-endpoint icon calon-api-endpoint

The Candidate API is a service that provides information about candidates running for office in the 2014 Indonesian elections.

calon-presiden-api-endpoint icon calon-presiden-api-endpoint

The Presidential Candidate API is a service that provides information about candidates running for president and vice-president in the 2014 Indonesian elections

dpr.go.id icon dpr.go.id

Berisikan data-data yang bersumber dari laman dpr.go.id

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.