mirror of
https://github.com/teamhanko/hanko.git
synced 2025-10-27 14:17:56 +08:00
This pull request introduces the new Flowpilot system along with several new features and various improvements. The key enhancements include configurable authorization, registration, and profile flows, as well as the ability to enable and disable user identifiers (e.g., email addresses and usernames) and login methods. --------- Co-authored-by: Frederic Jahn <frederic.jahn@hanko.io> Co-authored-by: Lennart Fleischmann <lennart.fleischmann@hanko.io> Co-authored-by: lfleischmann <67686424+lfleischmann@users.noreply.github.com> Co-authored-by: merlindru <hello@merlindru.com>
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 theserver.public.addressoption 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.