Test application with api for getting people at a specific distance(30km) and for getting person's profile.
- Ruby 2.5.3 (install with rbenv)
- Rubygems
- Bundler (
gem install bundler
) - PostgreSQL
Add data about your pguser in /config/database.yml:
host: localhost
user: pg_user
password: pg_password
- rails db:create
- rails db:migrate
- rails db:seed
- /users/?coords=latitude,longitute GET Get lisf of people closer than 30km
- /users/1 GET Get person's profile
curl http://localhost:3000/users/?coords=11.023666,12.326888
curl http://localhost:3000/users/6