[chore]: Satt opp backend på NTNU VM med systemd, skrevet dokumentasj… #50
+158
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…on og oppdatert readme
Hva er endret?
Type endring
Test endringene
npm run lintfor å sjekke kodekvalitet med ESLintnpm run format:checkfor å sjekke formatering med Prettiernpm run buildfor å kontrollere TypeScript og produksjonsbyggetManuell testing
Forutsetning: Vær tilkoblet NTNU-nettverket eller NTNU VPN.
Åpne http://it2810-28.idi.ntnu.no:3001/ og kontroller at GraphQL-endepunktet er tilgjengelig. Kjør spørringen { __typename } i Apollo Sandbox og kontroller at den returnerer data.
Konfigurer VITE_GRAPHQL_URL=http://it2810-28.idi.ntnu.no:3001/ i .env.local i prosjektets rotmappe. Kjør npm install og npm run dev, og åpne frontend på http://localhost:5173/. Kontroller at landlisten og landdetaljer lastes inn.
Åpne nettleserens Developer Tools → Network og kontroller at GraphQL-forespørsler sendes til VM-adressen og får HTTP 200.
Ekstra kontroll (krever SSH-tilgang til VM): Kjør systemctl status t28-backend og kontroller at tjenesten er active (running).
Backend er konfigurert for automatisk oppstart ved omstart av VM, men dette er ikke testet med en faktisk omstart.
Sjekkliste
Closes #41