Skip to content

About

The new website for luak! Everybody is free to help :) or open issues

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

940 Commits

Folders and files

Repository files navigation

LUAK website

The tech stack used for this project is:

Setup

  1. Install Docker (or podman)
  2. Install Node 22.x.x (for example using asdf: asdf install nodejs 22.23.2)
  3. Install yarn using corepack: corepack enable && corepack prepare yarn@1.22.22 --activate
  4. Install packages: yarn install

Next set the right env variables to connect with supabase. check .env.example and the Supabase Docs

Editor

It is recommended to use Visual Studio Code with the following extensions:

  • Nuxt Extension pack
  • Even Better TOML
  • ESLint
  • Deno
  • Prettier - Code formatter
  • Tailwind CSS IntelliSense

Running tests from the editor:

  • Vitest
  • Playwright Test for VSCode

e2e-tests

Firs you need to install the playwright browsers: yarn playwright install chromium

Nuxt Studio

Visual content editing is available through Nuxt Studio.

Quick start (dev mode):

To run against the production database: yarn dev --dotenv .env.production

Test users

Some test users are created when running the e2e tests. If you need them for manual testing after a fresh DB reset run yarn test:e2e --project="setup db"

Supabase

Set up the local database, for the first time use:

  • supabase start (can take a long time)
  • supabase login
  • supabase link

To pull the latest migrations from the linked(=remote) db

supabase db pull

To make your local db look like the migrations

supabase db reset

To generate a migration file for the diff between you local db and what is defined in the migrations files

supabase db diff --schema=public -f [migration name]

Export DB types

yarn sb:gentypes

To push db changes to prod

supabase db push -- DON'T USE!!! (if you don't know what you are doing)

Backup

To make a (manual) backup or restore the backup, see the supabase docs

About

The new website for luak! Everybody is free to help :) or open issues

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages