diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index c286741..d2ea852 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -68,7 +68,7 @@ jobs: - name: 👁️ Checkout repository uses: actions/checkout@v4 with: - fetch-depth: 0 # important to fetch tag logs + fetch-depth: 1 # important to fetch tag logs - name: 📦 pnpm install run: pnpm install diff --git a/README.md b/README.md index cc42fac..1f1a26e 100644 --- a/README.md +++ b/README.md @@ -4,34 +4,21 @@ for the university hospital in Augsburg ## Development -The project template was created using -[`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte). +The project template was created using [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte). -Once you've created a project and installed dependencies with `npm install` (or -`pnpm install` or `yarn`), start a development server: +Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: ```bash -pnpm run dev +npm run dev # or start the server and open the app in a new browser tab -pnpm run dev -- --open +npm 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. +### Handle the prisma ORM ```bash +./run/db_up.sh # Start the docker container, create a new database and run migrations + insert test data npx prisma migrate dev --name my_migration --create-only # Create a new migration npx prisma migrate dev # Apply migrations to the database ``` @@ -41,20 +28,12 @@ npx prisma migrate dev # Apply migrations to the database To create a production version of your app: ```bash -pnpm run build +npm run build ``` You can preview the production build with `npm run preview`. -> To deploy your app, you may need to install an -> [adapter](https://kit.svelte.dev/docs/adapters) for your target environment. - -### Test - -```bash -pnpm test # Unit- und Integrationstests -pnpm test:e2e # End2End-Tests -``` +> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment. ### Release @@ -63,10 +42,3 @@ To release a new version, tun the release script with the new version as a param ```bash ./release.sh 1.0.0 ``` - -### Building docker image - -```bash -pnpm run build -docker build -t thetadev256/visitenbuch . -```