https://github.com/fusionauth/fusionauth-example-hostedbackend
A sample FusionAuth Backend-for-Frontend app using hosted backend
https://github.com/fusionauth/fusionauth-example-hostedbackend
authentication bff fusionauth javascript oauth2 security serverless
Last synced: 30 days ago
JSON representation
A sample FusionAuth Backend-for-Frontend app using hosted backend
- Host: GitHub
- URL: https://github.com/fusionauth/fusionauth-example-hostedbackend
- Owner: FusionAuth
- Created: 2025-06-13T15:17:49.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2026-04-21T23:04:45.000Z (about 2 months ago)
- Last Synced: 2026-04-22T01:13:58.317Z (about 2 months ago)
- Topics: authentication, bff, fusionauth, javascript, oauth2, security, serverless
- Language: CSS
- Homepage: https://fusionauth.io
- Size: 35.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
# FusionAuth BFF Example
## Prerequisites
Install Docker.
## How To Run
In a terminal, run the command below to start FusionAuth.
```sh
docker compose up
```
Then in another terminal, **either** start the app with a node server with the command below:
```sh
cd nodeApp
docker run --init -it --rm --name "app" -v ".:/app" -w "/app" -p 3000:3000 --network faNetwork node:23-alpine3.19 sh -c "npm install && node app.js"
```
**Or** start the serverless app that uses the hosted backend with the command below:
```sh
cd serverlessApp
docker run --init -it --rm --name "app" -v ".:/app" -w "/app" -p 3000:3000 --network faNetwork node:23-alpine3.19 sh -c "npm install http-server && npx http-server -d false -a 0.0.0.0 -p 3000 --proxy http://localhost:3000?"
```
Browse to either app at http://localhost:3000.