{"id":31947638,"url":"https://github.com/vizzuality/laws_and_pathways","last_synced_at":"2025-10-14T11:46:38.277Z","repository":{"id":40658313,"uuid":"193891636","full_name":"Vizzuality/laws_and_pathways","owner":"Vizzuality","description":"Climate Change Laws of the World and Transition Pathways Initiative CMS + Front end Applications","archived":false,"fork":false,"pushed_at":"2024-11-26T12:57:53.000Z","size":115456,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2024-11-26T13:40:24.177Z","etag":null,"topics":["activeadmin","climate","rails","reactjs"],"latest_commit_sha":null,"homepage":"","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/Vizzuality.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}},"created_at":"2019-06-26T11:30:56.000Z","updated_at":"2024-11-26T12:57:57.000Z","dependencies_parsed_at":"2023-09-27T18:02:55.717Z","dependency_job_id":"c9e792cf-1280-41f2-bd0f-ab5ce959307e","html_url":"https://github.com/Vizzuality/laws_and_pathways","commit_stats":{"total_commits":2539,"total_committers":18,"mean_commits":"141.05555555555554","dds":0.5399763686490744,"last_synced_commit":"265802d7ca486994cc1085107a2b88e42b17c49f"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Vizzuality/laws_and_pathways","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vizzuality%2Flaws_and_pathways","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vizzuality%2Flaws_and_pathways/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vizzuality%2Flaws_and_pathways/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vizzuality%2Flaws_and_pathways/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vizzuality","download_url":"https://codeload.github.com/Vizzuality/laws_and_pathways/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vizzuality%2Flaws_and_pathways/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279019073,"owners_count":26086518,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["activeadmin","climate","rails","reactjs"],"created_at":"2025-10-14T11:46:26.689Z","updated_at":"2025-10-14T11:46:38.272Z","avatar_url":"https://github.com/Vizzuality.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laws and Pathways backoffice\n\nThe backoffice for laws and pathways\n\n## Dependencies:\n\n- Ruby v3.0.0\n- Rails v6.1.7\n- Node v14\n- PostgreSQL v11\n\n## Local installation\n\nThese are the steps to run the project locally:\n\n### Installing ruby dependencies\n\nOn the project's root run `bundle install`.\n\n### Installing npm dependencies\n\n`yarn`\n\n### Database\n\n#### Create database schema\n\n`bundle exec rails db:setup` to setup the database\n\n#### Database seeds for development\n\nTo seed the database subset of selected production data is being used. The data was taken just for only a few countries and it's being\nimported using import services. If you for some reason don't want to import this data just set `SEED_DATA=false` env variable\nbefore running `db:setup` command.\n\n### Setting up local subdomains\n\nThis project contains two different websites and admin panel. That's why to make it work we need to make changes to /etc/hosts in development env\n\nAdd those 2 entries to your `/etc/hosts` file\n\n```\n127.0.0.1        tpi.localhost\n127.0.0.1        cclow.localhost\n```\n\n### Run the server\n\n`yarn start'` and access the project on `http://localhost:3000`\n\n### Run the tests\n\n`yarn test`\n\n#### System tests\n\nFor speed and simplicity to not have to create complicated scenarios using factories, for system testing we are always loading complete db dump.\n\nDB was created by seeding the database and its stored in `db/test-dump.sql` file.\nTo recreate dump use dedicated rake task `RAILS_ENV=test bin/rails test:db_dump`\n\n### Run linters\n\n`yarn lint`\n`yarn lint:rails`\n`yarn lint:js`\n\n## Docker\n\nTODO\n\n## Configuration\n\n### Google Cloud Storage\n\nCredential key JSON file is stored in `config/secrets` directory. You can override file by setting `GCS_CREDENTIALS_FILE` env variable, all files\nmust be stored in `config/secrets` directory.\n\nBe sure to never commit credentials file!\n\n## API\n\n## Flags Sourced from\n\n * [FlagKit](https://github.com/madebybowtie/FlagKit)\n\n## MISC\n\n### Model annotations\n\nTo annotate models run\n\n`bundle exec annotate --models`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvizzuality%2Flaws_and_pathways","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvizzuality%2Flaws_and_pathways","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvizzuality%2Flaws_and_pathways/lists"}