Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oppdaterer readme etter overgang fra å hente tokenet i cookie til å bruke fakedings #1809

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
Frontend - søknad for enslig forsørger.

## Kjør lokalt
Lokal kjøring krever internett da tokenet hentes fra fakedings: `https://github.com/navikt/fakedings`

1. `npm install`
2. `npm run start`
3. Kjør opp `familie-ef-soknad-api`
4. Hvis du mangler token må du få cookie fra søknad-api
`http://localhost:8091/local/cookie?redirect=http://localhost:3000/familie/alene-med-barn/soknad&issuerId=tokenx&audience=familie-app`

4. Gå til `http://localhost:3000/familie/alene-med-barn/soknad/`

### Mot preprod:
1. Hent token fra
Expand All @@ -22,6 +21,7 @@ TOKENX_DOKUMENT=...
```
3. `npm install`
4. `npm run start:preprod`
5. Gå til url: `http://localhost:3000/familie/alene-med-barn/soknad/`

* Hvis man ønsker å kjøre med mock-api
1. `node mock/mock-server.js`
Expand Down
Loading