Files
dependabot[bot] 5fa1d8362b chore(deps): bump json5 from 1.0.1 to 1.0.2 in /examples/nextjs
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-25 17:42:37 +00:00
..
2022-09-20 15:58:35 +02:00
2022-09-20 18:05:26 +02:00
2022-09-20 15:58:36 +02:00
2022-09-20 18:05:26 +02:00
2022-09-20 15:58:35 +02:00
2022-09-20 15:58:35 +02:00
2022-09-20 15:58:35 +02:00
2022-09-20 15:58:35 +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.