Compare commits

..

3 Commits

Author SHA1 Message Date
0bd83f8000
Added readme 2023-04-19 12:01:51 +02:00
910fa3867b
pinned dependency 2023-04-19 11:57:47 +02:00
2e355dbb46
Package project info 2023-04-19 11:57:36 +02:00
2 changed files with 40 additions and 32 deletions

View File

@ -1,38 +1,27 @@
# create-svelte # @lfk/kiosk
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte). ## Overview 👀
This is a simple kiosk style register form for the LfK runnersystem.
The basic idea is:
1. Create a runnersystem user with only `RUNNER:CREATE` permissions.
2. Login with this user under `/login`
3. Runners can register via their firstnam and lastname
4. The kiosk creates the runner via the backend and shows their id, firstname, lastname and a barcode containing their id
## Creating a project ## Development 🛠️
```
If you're seeing this, you've probably already done this step. Congrats! pnpm i
pnpm dev --open
```bash
# create a new project in the current directory
npm create svelte@latest
# create a new project in my-app
npm create svelte@latest my-app
``` ```
## Developing ## Build 🚀
```
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: pnpm i
pnpm build
```bash
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
``` ```
## Building ## Docker 🐳
```
To create a production version of your app: docker build .
docker-compose up
```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.

View File

@ -2,6 +2,25 @@
"name": "@lfk/kiosk", "name": "@lfk/kiosk",
"version": "0.0.1", "version": "0.0.1",
"private": false, "private": false,
"license": "MIT",
"repository": "https://git.odit.services/lfk/kiosk",
"author": {
"name": "ODIT.Services",
"email": "info@odit.services",
"url": "https://odit.services"
},
"contributors": [
{
"name": "Philipp Dormann",
"email": "philipp@philippdormann.de",
"url": "https://philippdormann.de"
},
{
"name": "Nicolai Ort",
"email": "info@nicolai-ort.com",
"url": "https://nicolai-ort.com"
}
],
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vite dev",
"build": "vite build", "build": "vite build",
@ -39,7 +58,7 @@
}, },
"type": "module", "type": "module",
"dependencies": { "dependencies": {
"@odit/lfk-client-js": "^1.0.1", "@odit/lfk-client-js": "1.0.1",
"bwip-js": "3.4.0" "bwip-js": "3.4.0"
}, },
"release-it": { "release-it": {