This projects lets users to see and manage fields.
Leaflet is used for maps renderer. For drawing options using Leflet-Geoman plugin. The plugin is configured so it lets to draw polygons, to make holes in the polygons, to drag the points of the polygon.
The projects has pages with simple logic covered with Capybara tests, more complex logic covered with unit tests and some medium-complexity API logic covered with requests tests.
The Docker/docker-compose versions were used to develop this project:
> docker --version
Docker version 24.0.2, build cb74dfc
> docker-compose --version
Docker Compose version v2.18.1
- Run this command:
docker-compose up
- Done. At this point you should be able to access the website locally at http://localhost:3000
docker-compose run web rspec
- Once running tests, there will be lines like
find: ‘/root/.config/chromium/Crash Reports/pending/’: No such file or directory
. This is due to latest Chromium update and does not affect anything, so ignore it so far. - The area calculation is concerning, since it's probably very approximate. Related Stackoverflow discussion.