{"id":13818990,"url":"https://github.com/FranckKe/mersea","last_synced_at":"2025-05-16T04:32:06.887Z","repository":{"id":11705664,"uuid":"70314866","full_name":"FranckKe/mersea","owner":"FranckKe","description":"Web app to manage and visualise geolocalized waste report","archived":false,"fork":false,"pushed_at":"2025-04-20T17:35:35.000Z","size":5093,"stargazers_count":16,"open_issues_count":25,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-20T18:33:12.499Z","etag":null,"topics":["cartography","ecology","environmental","mapbox-gl-js","rails","vue"],"latest_commit_sha":null,"homepage":"https://oceanplastictracker.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FranckKe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-10-08T08:01:59.000Z","updated_at":"2024-12-01T19:27:07.000Z","dependencies_parsed_at":"2023-12-27T09:42:28.520Z","dependency_job_id":"56d9d014-c113-4cec-8d74-978b3736c260","html_url":"https://github.com/FranckKe/mersea","commit_stats":{"total_commits":568,"total_committers":9,"mean_commits":"63.111111111111114","dds":0.6408450704225352,"last_synced_commit":"c803fc45eb9c2f7fd7ada7a40f6a518c33758404"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FranckKe%2Fmersea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FranckKe%2Fmersea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FranckKe%2Fmersea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FranckKe%2Fmersea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FranckKe","download_url":"https://codeload.github.com/FranckKe/mersea/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254469183,"owners_count":22076449,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cartography","ecology","environmental","mapbox-gl-js","rails","vue"],"created_at":"2024-08-04T08:00:37.072Z","updated_at":"2025-05-16T04:32:05.843Z","avatar_url":"https://github.com/FranckKe.png","language":"Ruby","funding_links":[],"categories":["Happy Exploring 🤘"],"sub_categories":[],"readme":"![license](https://img.shields.io/dub/l/vibe-d.svg)\n\n# Mersea\n\n## Requirements\n\n- Ruby MRI 2.7.x ([rbenv](https://github.com/rbenv/rbenv) recommended)\n- Bundler\n- Rails 6.x\n- Postgres 9.5+ [configuration file](https://github.com/FranckKe/mersea/blob/master/config/database.yml)\n- [ImageMagick](https://www.imagemagick.org/script/index.php)(for thumbnails)\n\n### Setup\n\n```sh\nrbenv install\ngem install bundler\n```\n\n## Development\n\nClone repository.\n\n```sh\n# Install and configure db\n$ bundle install\n$ bundle exec rails db:create\n$ bundle exec rails db:migrate\n\n# Add static pages\n$ bundle exec rails db:seed\n\n# Launch app\n$ bundle exec rails s\n```\n\n[Increase inotify watchers](https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers).\n\nReCaptcha is disabled in development. Configure key if needed using `RECAPTCHA_SECRET_KEY` and `RECAPTCHA_SITE_KEY`.\n\n### Create an admin account\n\nWithin a Rails console:\n\n```sh\nbundle exec rails console\n```\n\n```rb\nAdmin.create(name: 'myname', email: 'myemail@email.local', password: 'mypassword')\n```\n\nAdmin section is reachable at `/admin`.\n\n### Frontend\n\nTo setup frontend, see readme in `./frontend`.\n\n## Production with Docker\n\n**Configure your reCaptcha keys as environment variables**\n\n- Start server via Docker Compose\n\n```sh\n$ cd /path/to/mersea\n$ docker-compose up -d\n```\n\n\u003e Feel free to modifies the provided docker-compose.yml to your needs.\n\nhttp://localhost:3000\n\n- Start a Rails console\n\n```sh\n# mersea_mersea_1 is the container name defined by docker-compose\n$ docker exec -it mersea_mersea_1 bundle exec rails c\n```\n\nTo set any environment variable in the container, use one or more `-e` flags:\n\n- `JWT_SECRET` → the JWT secret\n- `MERSEA_NAMESPACE` → namespace the url\n- `RAILS_SERVE_STATIC_FILES` → the webapp serves all the assets instead of NGINX\n- `MERSEA_DATABASE_POOL` → database connection pool size\n- `MERSEA_DATABASE_HOST` → database host (IP address or URL)\n- `MERSEA_DATABASE_PORT` → database port (by default 5432)\n- `MERSEA_DATABASE_USERNAME` → database credential\n- `MERSEA_DATABASE_PASSWORD` → database credential\n- `RECAPTCHA_SITE_KEY` → Google reCaptcha key\n- `RECAPTCHA_SECRET_KEY` → Google reCaptcha secret\n- `BUGSNAG_API_KEY` → Bugsnag key (leave empty to disable error reporting)\n\n## Datagouv export\n\n```sh\n# Configure .env file with datagouv credentials\nbundle exec rake datagouv\n```\n\n## License\n\nMIT. See the [LICENSE](https://github.com/FranckKe/mersea/blob/master/LICENSE) for more details.\n\n## About\n\n- [For more information about the project checkout the about and information section on oceanplastictracker.com](https://oceanplastictracker.com)\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Ensure specs and Rubocop pass\n5. Push to the branch (git push origin my-new-feature)\n6. Create new Pull Request\n\n## Special thanks\n\nWe would like to thanks the following companies for their open source plans and support\n\n|                                                                                |                                                                                                                                                |\n| :----------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------- |\n|        [![Bugsnag](thanks_logos/bugsnagx128.png)](https://bugsnag.com)         | Thanks to **Bugsnag** we can monitor and investigate errors on our application                                                                 |\n|          [![Mapbox](thanks_logos/mapboxx128.png)](https://mapbox.com)          | Thank you to **Mapbox** for their mapping services and tools                                                                                   |\n| [![BrowserStack](thanks_logos/browserstackx128.png)](https://browserstack.com) | Thank you to **BrowserStack** for their testing platform. It allows us to seamlessly test our web application on different devices and browser |\n|      [![Circle-ci](thanks_logos/circlecix128.png)](https://circleci.com)       | Thanks to **Circleci** we can build efficient ci/cd pipelines                                                                                  |\n\nThanks to all the open source tools we are using to make our application ([gemfile](Gemfile), [package.json](front/package.json))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFranckKe%2Fmersea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFranckKe%2Fmersea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFranckKe%2Fmersea/lists"}