acdh-oeaw / frischmuth-frontend

frontend for the frischmuth project
https://frischmuth-frontend.acdh-ch-dev.oeaw.ac.at/
MIT License
1 stars 0 forks source link

frischmuth frontend

the frontend for the frischmuth project. deployed at https://frischmuth-frontend.acdh-ch-dev.oeaw.ac.at/. development version deployed at https://frischmuth-frontend-dev.acdh-ch-dev.oeaw.ac.at/.

how to run

prerequisites:

[!TIP]

you can use pnpm to install the required node.js version with pnpm env use 20 --global

set required environment variables in .env.local:

cp .env.local.example .env.local

also, set environment variables required by github actions. use "variables" for every environment variable prefixed with NUXT_PUBLIC_, and "secrets" for all others.

install dependencies:

pnpm install

run a development server on http://localhost:3000:

pnpm run dev

how to deploy

[!IMPORTANT]

this is a feature exclusive to nuxt 3. for most deployment scenarios it is not needed, but it can be useful for deploying multiple instances from a single build.

if everything is set up correctly, every git push to the main branch will create a new deployment if the validation pipeline passes.

you can reference the template repository for a working setup.