Sub-project under the SEISM Capital project, the source of BC’s species inventory data.
The objectives for the BioHubBC project are:
- To provide a single source for aquatic and terrestrial species and habitat data.
- To reduce the barriers for collecting and sharing aquatic and terrestrial species and habitat data throughout the province of British Columbia.
- To reduce the effort involved with managing aquatic and terrestrial species and habitat data.
- To improve access for all stakeholders to the aquatic and terrestrial species and habitat data needed to make informed decisions and policies for the province.
See ./Makefile
for all available commands.
Note: this setup uses volumes to support live reload. You will need to ensure that you grant docker access to whichever hard-drive you are working in.
This will copy ./env_config/env.docker
to ./.env
Note: this file may need additional editing to provide secrets for external services (like S3).
make env
Note: you will need to use a terminal that supports make, etc. On Mac this is the default terminal, on Windows you can use something like git-bash
.
Builds and runs the database (including migrations/seeding), api, web and ionic apps.
make all
Runs the database (including migrations/seeding) and api.
make backend
Runs the database (including migrations/seeding), api, and web app.
make web
Runs the database (including migrations/seeding), api, and ionic app.
make ionic
api:
localhost:6100/api/
localhost:80/api/
app:
localhost:7100
app-ionic
localhost:8100
See ./Makefile
for all available commands.
The most common commands, other than the ones mentioned above which run the project(s).
make close
make clean
make database
make api
make app
make app-ionic
This will aggressively delete docker artifacts to recover docker hard-drive space.
See documentation for OPTIONS.
docker system prune [OPTIONS]
See documentation for OPTIONS.
docker volume prune [OPTIONS]
docker ps
docker ps -a
docker logs <container id or name>
Include -f
to "follow" the container logs, showing logs in real time
Copyright 2019 Province of British Columbia
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.