{"id":41182708,"url":"https://github.com/bcgov/workbc-cc","last_synced_at":"2026-05-21T00:11:15.804Z","repository":{"id":36966751,"uuid":"443200766","full_name":"bcgov/workbc-cc","owner":"bcgov","description":"WorkBC Career Compass project","archived":false,"fork":false,"pushed_at":"2026-01-30T22:30:05.000Z","size":83829,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-31T14:27:11.034Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PLpgSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bcgov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-12-30T22:47:33.000Z","updated_at":"2026-01-30T22:30:03.000Z","dependencies_parsed_at":"2026-01-06T12:08:52.345Z","dependency_job_id":null,"html_url":"https://github.com/bcgov/workbc-cc","commit_stats":null,"previous_names":[],"tags_count":102,"template":false,"template_full_name":null,"purl":"pkg:github/bcgov/workbc-cc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fworkbc-cc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fworkbc-cc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fworkbc-cc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fworkbc-cc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcgov","download_url":"https://codeload.github.com/bcgov/workbc-cc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fworkbc-cc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29102409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T22:44:52.815Z","status":"ssl_error","status_checked_at":"2026-02-04T22:44:16.428Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-22T20:11:22.135Z","updated_at":"2026-05-21T00:11:15.798Z","avatar_url":"https://github.com/bcgov.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"WorkBC Career Discovery Quizzes\n===============================\n\n[![Lifecycle:Maturing](https://img.shields.io/badge/Lifecycle-Maturing-007EC6)](https://github.com/bcgov/workbc-cc)\n\nCareer Discovery Quizzes, a subsite of [WorkBC.ca](https://www.workbc.ca).\n# Initial setup\n- Copy `.env.example` to `.env`\n- Create private directory: `mkdir src/private`\n- Start the environment: `docker-compose up`\n- Adjust folder permissions:\n  - `docker-compose exec php sudo chown www-data /var/www/html/private`\n  - `docker-compose exec php sudo chown www-data /var/www/html/config/sync`\n  - `docker-compose exec php sudo mkdir /var/www/html/web/sites/default/files`\n  - `docker-compose exec php sudo chown www-data /var/www/html/web/sites/default/files`\n- Import the data dumps:\n  - `gunzip -k -c src/scripts/workbc-cc.sql.gz | docker-compose exec -T postgres psql -U workbc workbc-cc-refactor`\n  - Restore the SSOT data dump as per the [`workbc-ssot` README](https://github.com/bcgov/workbc-ssot?tab=readme-ov-file#development). Assuming your SSOT repo lives at `../workbc-ssot`:\n  ```bash\n  docker-compose exec -T postgres psql --username workbc ssot \u003c ../workbc-ssot/ssot-reset.sql \\\n  \u0026\u0026 gunzip -k -c ../workbc-ssot/ssot-full.sql.gz | docker-compose exec -T postgres psql --username workbc ssot \\\n  \u0026\u0026 docker-compose kill -s SIGUSR1 ssot\n  ```\n- Edit your `hosts` file to add the following line:\n```\n127.0.0.1       workbc-cc.docker.localhost\n```\n- Run the sync script: `docker-compose exec php scripts/sync.sh`\n- Open http://workbc-cc.docker.localhost:8000/ to view the site and login as `aest-local` (obtain the password from your admin or change the password using `drush upwd aest-local 'password'`)\n- Open http://localhost:8080/ to view the SSoT API\n\n# Updating local dev environment from a deployment stage\nYou may want to get the latest data from a deployment stage (DEV, TEST or PROD). In that case, follow these steps:\n- Take a full database dump: `docker-compose exec -T postgres pg_dump --clean --username workbc workbc-cc-refactor | gzip \u003e src/scripts/workbc-cc.sql.gz`\n- Reset your database `docker-compose exec -T postgres psql -U workbc workbc-cc-refactor \u003c src/scripts/workbc-cc.reset.sql`\n- Download a fresh dump from your deployment stage via Backup/Migrate module at `/admin/config/development/backup_migrate` and select Backup Source **Default Drupal Database**\n- Restore the fresh dump on your local at http://workbc-cc.docker.localhost:8000/admin/config/development/backup_migrate/restore\n- Repeat the above two steps for Backup Source **Public Files Directory** in case you also need the latest files\n- Run the sync script: `docker-compose exec php scripts/sync.sh`\n\n# Compiling Theme\nIn order to compile the theme (workbc_cdq) you must:\n- Install SASS (https://sass-lang.com/install)\n- run `sass scss/style.scss css/style.css \u0026\u0026 sass scss/ck5style.scss css/ck5style.css` (or `sass scss/style.scss css/style.css; sass scss/ck5style.scss css/ck5style.css` in Windows Powershell) in the theme folder `/src/web/themes/custom/workbc_cdq`\n\n# Debugging and troubleshooting\n\n## Xdebug on VS Code\n- The Docker Compose file is ready for Xdebug on Windows/Mac/Linux\n- Add a `.vscode/launch.json` file with the following:\n```json\n{\n  \"version\": \"0.2.0\",\n  \"configurations\": [\n    {\n      \"name\": \"Listen for Xdebug on workbc-cc\",\n      \"type\": \"php\",\n      \"request\": \"launch\",\n      \"port\": 9003,\n      \"pathMappings\": {\n        \"/var/www/html/\": \"/path/to/your/workbc-cc/src\"\n      }\n    }\n  ]\n}\n```\n- Click **Run** \u003e **Start Debugging** on VS Code\n- Set some breakpoints in your Drupal code\n- Navigate to the app in your browser to trigger the breakpoints\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcgov%2Fworkbc-cc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcgov%2Fworkbc-cc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcgov%2Fworkbc-cc/lists"}