https://github.com/bcgov/workbc-tr
WorkBC Teacher Resources
https://github.com/bcgov/workbc-tr
Last synced: 3 months ago
JSON representation
WorkBC Teacher Resources
- Host: GitHub
- URL: https://github.com/bcgov/workbc-tr
- Owner: bcgov
- License: apache-2.0
- Created: 2021-05-28T21:36:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-12-04T18:03:27.000Z (6 months ago)
- Last Synced: 2025-12-08T01:50:14.099Z (6 months ago)
- Language: CSS
- Size: 83.6 MB
- Stars: 4
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
WorkBC Career Education Resources
===================================
[](https://github.com/bcgov/workbc-tr)
Career Education Resources, a subsite of [WorkBC.ca](https://www.workbc.ca).
# Initial setup
- Copy `.env.example` to `.env`
- Start the environment: `docker-compose up`
- Adjust folder permissions:
- `mkdir src/private && docker-compose exec php sudo chown www-data /var/www/html/private`
- `docker-compose exec php sudo chown www-data /var/www/html/config/sync`
- Import the data dump:
- `gunzip -k -c src/scripts/workbc-tr.dump.sql.gz | docker-compose exec -T postgres psql -U drupal workbc-tr`
- Create the Solr index:
- `docker-compose exec -u 0 solr sh -c "chown -R solr:solr /opt/solr/server/solr/workbc-tr_dev"`
- `docker-compose exec solr sh -c "curl -sIN 'http://localhost:8983/solr/admin/cores?action=CREATE&name=workbc-tr_dev&configSet=workbc-tr&instanceDir=workbc-tr_dev'"`
- `docker-compose exec php bash -c "drush sapi-r && drush sapi-i"`
- Edit your `hosts` file to add the following line:
```
127.0.0.1 workbc-tr.docker.localhost
```
- Run the sync script: `docker-compose exec php scripts/sync.sh`
- Open http://workbc-tr.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'`)
# Architecture
The solution architecture is as below.
