The Competence Repository Service allows content creators / teachers to develop their own competence repositories (i.e., taxonomies), share them with others, and use them to model required and offered competencies of a course.
npm install
The service can be configured via the .env
file placed in the root of this repository. These parameters may be overwritten by environment variables, as environment variable takes precedence over the parameters defined in the configuration file.
# Start the dev-db docker container
npm run db:start
# Reset db without applying seed (e.g., after db is in inconsistent state but seed not needed)
npx prisma db push --force-reset
# Apply sample data (without clearing existing data)
npx prisma db seed
# Clear data and seed (e.g., after db is in inconsistent state and seed data is expected for local tests)
npm run db:redeploy
# Create and deploy a new db migration (after the db schema has been changed), will also seed the db (applying sample data)
npx prisma migrate dev
# Run the web-based client to browse and manipulate the dev-db
npx prisma studio
# development
npm run start
# watch mode
npm run start:dev
# production mode
npm run start:prod
# unit / integration tests (requires empty DB)
npm run test
# e2e tests
npm run test:e2e
# test coverage
npm run test:cov
main
, which shall be included into the release.npx prisma migrate dev --name <a_concise_name_describing_the_db_change>
Replace <a_concise_name_describing_the_db_change>
with an appropriate name that describes the change.package.json
before adding any further changes to the main branch.Automatically built docker images are available at our GitHub Docker Repository
This project is licensed under the Apache License 2.0.