** DOCKER REQUIRED **
- User
/search
endpoint to search information
- Simple condition:
key=value
is converted tokey [op] 'value'
- Range condition:
key=min-max
is converted tokey between (min, max)
- Multiple params can be performed:
key1=value1&key2=value2
is converted tokey1 [op] 'value1' AND key2 [op] 'value2'
- Data was returned in JSON format
# 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
- Change
DROP TABLE properties
toDROP TABLE IF EXISTS properties
to prevent error. - 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