This a REST APIs application to test Ruby on Rails implementation with Elasticsearch search engine.
The setups steps expect following tools installed on the system.
git clone git@github.com:touredev/projects-search-api.git
Copy the sample .example.env file and edit the system configuration as required.
cp .example.env .env
Run the following commands to create and setup the database.
rails db:create
rails db:setup
Run the following commands to import the data.
rails c
Project.import(force: true)
You can start the rails server using the command given below.
rails s
You can test the search endpoint in your browser like in the example below.
GET http://localhost:3000//main/search?q=amazon
GET http://localhost:3000//main/search?q=amazon&tech_stack=python