Steps to run project
- Clone this project
- Install dependencies by this command
bundle install
- Run
rails s
to start development server - Send get request to
localhost:3000/api/locations/search
it required two parameters:token
andquery
token
is configured in Rails credentials, you can view or edit by this commandEDITOR=nano rails credentials:edit
- master.key already included for this example(Otherwise it is not a good practice to add master.key file in public repo)
- It will return result in json format.
To run Rspec tests run rspec
I also deployed this app on heroku, you can test that too.
url https://msa-asana-rebel-test.herokuapp.com/api/locations/search
Make a get request to this end point with token
and query
params.