Files
Frederic Jahn ece8a5c860 chore: frontend version bump (#938)
* chore: frontend version bump

* chore: fix package-lock.json
2023-08-02 09:43:37 +02:00
..
2023-03-03 14:11:13 +01:00
2023-06-30 14:26:56 +02:00
2023-03-03 14:11:13 +01:00
2023-03-03 14:11:13 +01:00
2023-03-03 14:11:13 +01:00
2023-03-03 14:11:13 +01:00
2023-06-12 15:33:25 +02:00

Hanko Next.js example

This is a Next.js project bootstrapped with create-next-app.

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:

  • NEXT_PUBLIC_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)
  • NEXT_PUBLIC_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.