Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Ackuq/partiguiden-admin

Repository files navigation

Partiguiden Admin Panel

THIS PROJECT IS DEPRECATED, ITS FUNCTIONALITY HAS MOVED TO partiguiden

Getting Started

Prerequisites:

  • Node version >= 18
  • Docker

Configure package manager and install dependencies

corepack prepare
pnpm i

SSL Proxy

Generate self-signed certificate for using the https proxy when running on localhost:

mkdir .cert
openssl req -x509 -out .cert/localhost.crt -keyout .cert/localhost.key \
  -days 365 \
  -newkey rsa:2048 -nodes -sha256 \
  -subj '/CN=localhost' -extensions EXT -config <( \
   printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")

Commands

Pull .env file from Vercel

vercel env pull

Run development server and set up development database

pnpm dev

Applying and creating migrations (dev)

pnpm prisma:migrate

Populating data with initial data

pnpm dev:seed