Warning
This repository is generated from content that lives at github.com/FusionAuth/fusionauth-site. Changes to files here will be overwritten by that automation. File an issue or pull request with fusionauth-site instead.
This repository contains a locally hosted FusionAuth instance and an Express API. For full instructions, see the FusionAuth Express API QuickStart.
- Node.js 22 or later.
- Docker 23 or later.
- Navigate to the
fusionauthdirectory. - Start FusionAuth with Docker Compose:
docker compose up -d - Open http://localhost:9011/admin. Log in with
admin@example.comand the passwordpassword.
- Open a new terminal in the repository root.
- Navigate to
complete-applicationand install the dependencies:cd complete-application npm install - Start the API:
node api.mjs
The API listens on port 3000. Send access tokens in the Authorization: Bearer <token> header. The free@example.com user can call GET /read. The premium@example.com user can call POST /write.