Skip to content

Latest commit

 

History

History

express

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Hanko Express Example

This directory contains an express application that serves as the backend for the example frontend applications contained in the examples directory. It is a simple API for creating, listing and updating "todos".

Starting the app

Set up environment variables

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

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

Run the server

Run npm install to install dependencies, then run npm run start. The API will be available on http://localhost:8002/.