NRGI-Elasticsearch API can be cloned from gitlab repository and installed. Following the procedure given below:
- git clone [email protected]:web-apps/rces.git
- cd rces
The app can be run with the command below:
- install the application dependencies using command:
composer install
- copy .env.example to .env and update your configuration .
- run php server ie.
php -S localhost:8001
- make sure elasticsearch is running .
- Download Elasticsearch-
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.5.2.deb
sudo dpkg -i elasticsearch-1.5.2.deb
- Start Elasticsearch Service
sudo service elasticsearch restart
This application uses following packages:
- ElasticSearch PHP client - for Elastic Search API
- League Route - for Routing
- [PHP dotenv] (https://github.com/vlucas/phpdotenv) - for loading environment variables