44 lines
1.1 KiB
Markdown
44 lines
1.1 KiB
Markdown
# Visitenbuch
|
|
|
|
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).
|
|
|
|
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
|
|
|
```bash
|
|
npm run dev
|
|
|
|
# or start the server and open the app in a new browser tab
|
|
npm run dev -- --open
|
|
```
|
|
|
|
### 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
|
|
```
|
|
|
|
### Building
|
|
|
|
To create a production version of your app:
|
|
|
|
```bash
|
|
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.
|
|
|
|
### Release
|
|
|
|
To release a new version, tun the release script with the new version as a parameter
|
|
|
|
```bash
|
|
./release.sh 1.0.0
|
|
```
|