Skip to content

cabi/ausweis-app

Repository files navigation

Ausweis App

Take a photo with your tablet and create a document with your name and photo. Print it on magic-paper and you have entry to every place.

Example: Ausweis App

The site is created with github-pages.

Usage

Open the url of the ausweis-app with your tablet.

Touch the Button Start Webcam. Allow the Browser to access your webcam. It should switch to the front-camera - if not, switch to the front-camera.

Place your face in the former grey box and push the Foto aufnehmen Button. Your picture is placed in the Ausweis.

Enter your Name and besondere Fähigkeit in the Ausweis. The fields are normal input-fields that you can edit in your browser.

Pushing the Ausweis drucken Button open the Browser printing-dialog. You see only the Ausweis in the preview where you can print the page. Use the option Print Backgrounds in your print-dialog when you want the colour background in your print.

Limitations and Todos

  • only supports horizontal views on tablets
  • using it vertical can cause some glitches in taking the photo

Technical Requirements

  • Node.js 20.x
  • npm 10.x
  • Github

Packages used

Install

Clone the repository

git clone <repository>

Install the packages.

npm install

Everything you need to build a Svelte project, powered by sv.

Developing

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

npm run dev

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

Reformat code

Apply prettier rules to the code. Sorting the CSS-classes in the code. Just make it nice.

npm run fromat

Building

The app is configured with the static-adapter. It will build th files in the build-folder.

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

Deployment

The app has the deployment workflow configured in the file .github/workflows/deploy.yml.

After each push in the main-branch of the repository the deployment will be started.

It uses github-pages as a deployment target after building.

After the deployment you can find the builded app under.

https://<repository-owner>.github.io/<repository-name>/

interesting things to read

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •