https://github.com/altinn/altinn-authentication-frontend
Authentication React frontend with BFF
https://github.com/altinn/altinn-authentication-frontend
Last synced: 11 months ago
JSON representation
Authentication React frontend with BFF
- Host: GitHub
- URL: https://github.com/altinn/altinn-authentication-frontend
- Owner: Altinn
- License: mit
- Created: 2023-09-06T10:07:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T09:34:16.000Z (over 1 year ago)
- Last Synced: 2024-10-29T11:42:28.260Z (over 1 year ago)
- Language: C#
- Size: 1.35 MB
- Stars: 1
- Watchers: 15
- Forks: 0
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Altinn-authentication-frontend repo
Dette er et monorepo for Authentication React Frontend sub-repo, med tilhørende BFF (backend-for-frontend) sub-repo.
Prosjektet er nystartet og informasjon i README i sub-repo kan være midlertidig eller ufullstendig. Det er også opprettet et Repo Wiki: https://github.com/Altinn/altinn-authentication-frontend/wiki
### Hvordan sette opp diverse prosesser for lokal utvikling
03.11.23
Lokal utvikling med API kall fra React app til BFF dotnet app, og mock av innlogging mot app-localtest dotnet app og Docker, fire prosesser kjørende samtidig. Dette er beskrevet i Repo Wiki (og kort nedunder).
SWAGGER oversikt over API tilgjengelig i browser på
http://localhost:5191/swagger/index.html
### How-to-run BFF integration against app-localtest for mock of login
The Authentication Frontend BFF needs a set of configurations to integrate and run.
During Development it is through local.altinn.cloud
See the branch named "AuthFrontLocalTest" in the Altinn repo app-localtest ( https://github.com/Altinn/app-localtest/tree/AuthFrontLokalTest ), for the changes needed in local-test to run the BFF locally.
For example, one needs to edit the config file in the loadbalancer to forward the correct route. This should be part of the "AuthFrontLocalTest" branch already.
Run the "loadbalancer" (really NginX reverse proxy) in Docker:
> docker compose up -d --build
However, the Docker container "local-test" should be stopped (since we run that locally)
Run the BFF in the local folder (where program.cs is):
> dotnet run
Run the local-test in the local src folder (where program.cs is):
> dotnet run
Install the dependencies for the Frontend in its local folder if you are running the frontend for the first time:
> yarn install
Run the Vite server for the Frontend in its local folder:
> yarn start