Giter Site home page Giter Site logo

pemiluapi / candidate-pilkada-surabaya-endpoint Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 156 KB

Candidate PILKADA Surabaya EndPoint adalah layanan yang menyediakan informasi mengenai kandidat pada PILKADA Surabaya 2015.

Home Page: http://developer.pemiluapi.org

Ruby 86.22% CSS 1.72% HTML 12.05%

candidate-pilkada-surabaya-endpoint's Introduction

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"}}
    

candidate-pilkada-surabaya-endpoint's People

Contributors

dedebadru avatar

Watchers

 avatar  avatar  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.