Vektorprogrammets homepage website
Install required dependencies:
pnpm installRun the dev server:
pnpm run devCheck for linting and formatting errors:
pnpm checkApply safe fixes:
pnpm check:fixApply unsafe fixes:
pnpm check:fix:unsafeCheck for linting errors:
pnpm lintApply safe fixes:
pnpm lint:fixApply unsafe fixes:
pnpm lint:fix:unsafeCheck for formatting errors:
pnpm formatApply fixes:
pnpm lint:fixInstall required browsers for running e2e tests:
pnpm e2e:installRun all tests:
pnpm e2e:testUse the ui flag to watch the tests:
pnpm exec playwright test --uiRun tests for individual browsers:
| Google Chrome | Firefox | Safari |
|---|---|---|
pnpm e2e:test:chromium |
pnpm e2e:test:firefox |
pnpm e2e:test:webkit |
Generate tests interactively:
pnpm e2e:test:generateRead more in the docs.
First, build your app for production:
pnpm run buildThen run the app in production mode:
pnpm startNow you'll need to pick a host to deploy it to.
dashboard/: root folder with configuration files and subfolders.github/: GitHub config like CI/CD workflows and PR templates.react-router/: autogenerated types from React Router.vscode/: Local per user workspace settings for those using VSCodebuild/: Build artifacts for deploying the app to serverspublic/: Assets requiring no processing, clients download these files as is.src/: All source code for the web app__tests__/: End-to-end tests for full pages or user storiescomponents/: Common components used in multiple pages. Encapsulates features into singular units.ui: Primitives acting as the foundational building blocks for composing larger features or sections, for example common layout components like headers, footers and sidebars, or features like a login modal. Most primitives originates from shadcn/ui and might be manually tweaked to our preferences.
hooks/: Common React hooks reused in multiple pageslib/: Common code reused in multiple pagesroutes/: React Router route modules with filenames following the flat route config https://reactrouter.com/how-to/file-route-conventionsindex.css: Style variables accessable throughout the whole app. Mainly configuration of Tailwind and CSS variables.root.tsx: Root HTML rendered for ALL pages. Contains global metadata, styles and providers.routes.ts: React Router configuration. Check out the docs for an in-depth explanation of the API.