This is a project ready to be developed on the TravelPerk live coding interview.
Dependency | Version |
---|---|
PostgreSQL | 13.x |
Docker | 24.0.6 |
Docker-compose | 2.22.0 |
To build the system, run: make build
Make sure the network changeme is created: docker network create travel_perk
To install and/or update dependencies, run: make bundle-install
To run the application, run: make run
To run a terminal attached with debug active (pry), run: make run-debugging
The project will be running on http://localhost:7777/
Tests
make test # run all tests
make test spec/path_to_spec.rb # run tests of an specific file
make test spec/path_to_spec.rb:34 # run test at an specific line of a file
make test-failures # run only previously failed tests
Lint
make lint # run lint
make lint-fix # run lint and automatically fix issues
1️⃣ Api to look for the nearby places to eat/visit (using foursquare api).
2️⃣ Api to get the all the places ordered by the closest first from the given location.
3️⃣ Api to get the closest place to the given location.