Skip to content

Files

This branch is 299 commits behind teamhanko/hanko:main.

svelte

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 3, 2023
Mar 3, 2023
Jun 30, 2023
Mar 3, 2023
Mar 3, 2023
Mar 3, 2023
Mar 14, 2023
Jun 12, 2023
Mar 3, 2023
Dec 7, 2023
Mar 3, 2023
Mar 3, 2023
Mar 3, 2023
Mar 3, 2023

Hanko Svelte example

Starting the app

Prerequisites

  • a running Hanko API (see the instructions on how to run the API in Docker or from Source)
  • a running express backend (see the README for the express backend)

Set up environment variables

In the .env file set up the correct environment variables:

  • VITE_HANKO_API: this is the URL of the Hanko API (default: http://localhost:8000, can be customized using the server.public.address option in the configuration file)
  • VITE_TODO_API: this is the URL of the express backend (default: http://localhost:8002)

Run development server

Run npm install to install dependencies, then run npm run start for a development server. Navigate to http://localhost:8888/. The application will automatically reload if you change any of the source files.