A Vue 3 rewrite of korp-frontend.
Status: experimental
git clone [email protected]:spraakbanken/korp-vue
git clone [email protected]:spraakbanken/korp-vue-sb
cd korp-vue
ln -s ../korp-vue-sb instance
yarn install
yarn dev
The code requires an instance plugin with site-specific config and extensions to be placed in instance/.
src/ # Main app code, alias: "@/"
instance/ # This folder is in .gitignore, add it yourself, alias: "@instance/"
instance/plugin.ts # Instance plugin
instance/settings.ts # Instance settings
- Instance plugin – must export an function that returns
Promise<Plugin>, used by src/main.ts, see Vue Plugin docs - Instance settings - must export an object with frontend settings
To activate SSL (e.g. for ?mode=mink which uses SB-Auth):
- Point the hostname
korpdev.spraakbanken.gu.seto localhost. On a UNIX system, you can do this by editing/etc/hosts. - Create certificate files with mkcert:
mkcert "*.spraakbanken.gu.se" - Set these environment variables in
.envor otherwise:KORP_HOST=korpdev.spraakbanken.gu.se DEV_HTTPS_KEY=_wildcard.spraakbanken.gu.se-key.pem DEV_HTTPS_CERT=_wildcard.spraakbanken.gu.se.pem
- Install deps by running
yarn(v1) - Run with
yarn dev