{"id":24757867,"url":"https://github.com/opencdms/surface","last_synced_at":"2025-03-23T09:12:02.455Z","repository":{"id":38756400,"uuid":"407618635","full_name":"opencdms/surface","owner":"opencdms","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-30T04:39:02.000Z","size":34384,"stargazers_count":5,"open_issues_count":51,"forks_count":4,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-10-30T07:21:59.856Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opencdms.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":"2021-09-17T17:00:56.000Z","updated_at":"2024-10-07T21:26:53.000Z","dependencies_parsed_at":"2024-09-18T14:29:23.065Z","dependency_job_id":"22ed6621-8127-437c-9340-9a4f4565ac90","html_url":"https://github.com/opencdms/surface","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencdms%2Fsurface","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencdms%2Fsurface/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencdms%2Fsurface/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencdms%2Fsurface/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opencdms","download_url":"https://codeload.github.com/opencdms/surface/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245078184,"owners_count":20557281,"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":[],"created_at":"2025-01-28T15:36:40.664Z","updated_at":"2025-03-23T09:12:02.426Z","avatar_url":"https://github.com/opencdms.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Surface\n\n## Run Docker\n\ndocker-compose up\n\n## Run and Stop the project\n\ndocker-compose -f docker-compose-dev.yml up\n\ndocker-compose -f docker-compose-dev.yml stop\n\n## Production env\n\nin api file add the production env, you can find a example in \"./api/production.env.example\", add the values of variables, in hosts and ports you can put 0.\n\n## Generate Docker Images\ndocker-compose -f docker-compose-dev.yml build\n\n## Running with Docker\n\ndocker-compose -f docker-compose-dev.yml up postgres cache redis api\n\n## Load initial data\n\ndocker-compose -f docker-compose-dev.yml exec api bash load_initial_data.sh\n\n### if you're using windows\n\ndocker-compose -f docker-compose-dev.yml exec api bash\n\npython manage.py migrate\n\npython manage.py loaddata /surface/fixtures/*\n\n## Create superuser\n\ndocker-compose -f docker-compose-dev.yml exec api python manage.py createsuperuser\n\n## Collect static files before build for production\n\ndocker-compose -f docker-compose-prd.yml -p surface_new exec api bash load_initial_data.sh\n\ndocker-compose -f docker-compose-prd.yml -p surface_new exec api python manage.py collectstatic --noinput\n\n## Loading data\n\ndocker-compose -f docker-compose-dev.yml exec postgres pg_restore -U dba -d surface_db /data/shared/dump_surface_20211114.dump\n\ndocker-compose -f docker-compose-dev.yml exec postgres psql -U dba -d surface_db -c \"\\COPY raw_data FROM '/data/shared/dump_raw_data_20211130.csv' WITH DELIMITER ',' CSV HEADER;\"\n\n## Access DB manually\n\ndocker-compose -f docker-compose-dev.yml exec postgres psql -U dba -d surface_db\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencdms%2Fsurface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopencdms%2Fsurface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencdms%2Fsurface/lists"}