GithubHelp home page GithubHelp logo

aloha-api's Introduction

API Provider

** DOCKER REQUIRED **

API Page Preview

Features

  1. User /search endpoint to search information
  • Simple condition: key=value is converted to key [op] 'value'
  • Range condition: key=min-max is converted to key between (min, max)
  1. Multiple params can be performed:
  • key1=value1&key2=value2 is converted to key1 [op] 'value1' AND key2 [op] 'value2'
  1. Data was returned in JSON format

Instructions

# Enter project path
$ cd /path/to/project

# Start service
$ docker-compose up -d --build

# http://localhost still broken, 
# please run command below to install dependency packages 
# aloha-api = Folder name, fpm = service name. So, image should be aloha-api_fpm_1
$ docker exec -it aloha-api_fpm_1 php composer.phar install

Open localhost to preview application

Script fixing

  1. Change DROP TABLE properties to DROP TABLE IF EXISTS properties to prevent error.
  2. Run sed to convert string to date
$ sed -ie "s/,'04-08-2016',/,STR_TO_DATE('04-08-2016'),/g" property_data.sql
$ sed -ie "s/,'05-08-2016',/,STR_TO_DATE('05-08-2016'),/g" property_data.sql

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.