Code Monkey home page Code Monkey logo

fairfaxify-api's Introduction

Fairfaxify API

What is this?

This is a simple API built in Kohana by Tim Sheehan to serve JSONP data to Fairfaxify Mobile. Kohana is a PHP framework and requires PHP5.x to run, data is stored using MySQL.

Installation

Installation is simple and only requires modification of two base paths and database configuration. Once installed both API methods can be called from the following url's:

  • yourhost.com/[base_url]/rest/articles
  • yourhost.com/[base_url]/rest/article/[article_id]
Paths

.htaccess

  • Line 5: Change RewriteBase (if required) e.g. RewriteBase /fairfaxify/

application/bootstrap.php

  • Line 83: Change base_url (if required) e.g. 'base_url' => '/fairfaxify/'
MySQL

Import fairfaxify.sql into the target database.

application/config/database.php

  • Line 21: Change hostname e.g. 'hostname' => 'yourhost',
  • Line 22: Change database name e.g. 'database' => 'user_database',
  • Line 23: Change user name e.g. 'username' => 'root',
  • Line 24: Change password e.g. 'password' => 'abc123',
Security

If used in a production environment it is recommended that the application, modules and system folder be moved below web root and their respective paths changed in index.php.

fairfaxify-api's People

Contributors

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