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 [email protected]:touredev/projects-search-api.gitCopy the sample .example.env file and edit the system configuration as required.
cp .example.env .envRun the following commands to create and setup the database.
rails db:create
rails db:setupRun 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 sYou 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