No description
Find a file
ThetaDev 4cbf1ca7c3
All checks were successful
Visitenbuch CI / test (push) Successful in 2m21s
Visitenbuch CI / release (push) Has been skipped
ci: set fetch-depth to 0
2024-05-24 17:49:06 +02:00
.forgejo/workflows ci: set fetch-depth to 0 2024-05-24 17:49:06 +02:00
.vscode fix: add generic item type to Autocomplete 2024-04-05 00:35:07 +02:00
prisma fix!: ensure category, room and station names are unique 2024-05-18 16:35:42 +02:00
run fix: add dumb-init to docker image 2024-05-19 15:45:21 +02:00
src fix: remove test route 2024-05-19 23:37:33 +02:00
static add icon 2024-05-12 14:46:18 +02:00
tests test: use fixtures for E2E tests, fix wrong OIDC URL in CI 2024-05-14 15:33:57 +02:00
.dockerignore ci: upload E2E report 2024-05-14 14:28:02 +02:00
.editorconfig feat: add db queries for Entry 2024-01-11 23:53:42 +01:00
.env.example test: fix environment files 2024-05-13 13:01:00 +02:00
.env.test test: fix environment files 2024-05-13 13:01:00 +02:00
.gitignore ci: upload E2E report 2024-05-14 14:28:02 +02:00
.npmrc Initial commit 2023-11-01 17:42:03 +01:00
.pre-commit-config.yaml ci: retry 2024-05-14 14:17:47 +02:00
CHANGELOG.md chore(release): release v0.3.5 2024-05-20 15:11:32 +02:00
cliff.toml chore: add git-cliff 2024-05-07 00:54:45 +02:00
Dockerfile fix: add dumb-init to docker image 2024-05-19 15:45:21 +02:00
eslint.config.js fix: update ESLint config and fix lints 2024-05-13 23:33:35 +02:00
LICENSE Initial commit 2023-11-01 17:42:03 +01:00
package.json chore(release): release v0.3.5 2024-05-20 15:11:32 +02:00
playwright.config.js test: use fixtures for E2E tests, fix wrong OIDC URL in CI 2024-05-14 15:33:57 +02:00
pnpm-lock.yaml chore: remove unused zod-form-data dependency 2024-05-18 19:10:17 +02:00
postcss.config.cjs chore: add postcss plugins 2023-12-21 00:36:04 +01:00
README.md update README 2024-05-21 03:58:13 +02:00
release.sh chore: update README 2024-05-12 23:42:00 +02:00
svelte.config.js chore: update dependencies 2024-04-04 17:06:47 +02:00
tailwind.config.cjs fix: light/dark theme 2024-05-05 16:47:18 +02:00
tsconfig.json chore: update eslint to new flat config format 2024-04-18 23:18:18 +02:00
vite.config.ts fix: escape HTML for licenses file 2024-05-14 16:28:23 +02:00
vitest.config.integration.js ci: retry 2024-05-14 14:17:47 +02:00

Visitenbuch

for the university hospital in Augsburg

Development

The project template was created using create-svelte.

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

pnpm run dev

# or start the server and open the app in a new browser tab
pnpm run dev -- --open

Test environment

Copy the .env.example file to .env to get access to the required configuration variables.

The project depends on a PostgreSQL database and an OIDC authentication server. You can setup both using the run/db_up.sh script. This creates a new testing environment using docker-compose and fills the test database with mock data.

Use the Pisma ORM

If you apply changes to the database scheme, you have to create a new migration to apply these changes to the database.

npx prisma migrate dev --name my_migration --create-only # Create a new migration
npx prisma migrate dev # Apply migrations to the database

Building

To create a production version of your app:

pnpm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.

Test

pnpm test # Unit- und Integrationstests
pnpm test:e2e # End2End-Tests

Release

To release a new version, tun the release script with the new version as a parameter

./release.sh 1.0.0

Building docker image

pnpm run build
docker build -t thetadev256/visitenbuch .