Skip to content

Commit 0ccb680

Browse files
committed
Merged PR 107180: Backend solution støtte for Core Frontend
- Eksternt og internt backendapi for core Frontend - Støtte for Tiles endepunkter - Public og autentisert Tiles - deploy oppsett med konfig api og service discovery for VM, K8S og lokalt mot K8S - Tester Related work items: #336878, #336881
1 parent b6330c8 commit 0ccb680

File tree

2 files changed

+112
-2
lines changed

2 files changed

+112
-2
lines changed

.gitignore

+70-1
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,73 @@ screenshots
7272

7373
test-report.xml
7474

75-
.nx
75+
.nx
76+
77+
# User-specific files
78+
*.suo
79+
*.user
80+
*.userosscache
81+
*.sln.docstates
82+
83+
# User-specific files (MonoDevelop/Xamarin Studio)
84+
*.userprefs
85+
86+
# Build results
87+
[Dd]ebug/
88+
[Dd]ebugPublic/
89+
[Rr]elease/
90+
[Rr]eleases/
91+
x64/
92+
x86/
93+
bld/
94+
[Bb]in/
95+
[Oo]bj/
96+
[Ll]og/
97+
98+
# Visual Studio 2015 cache/options directory
99+
.vs/
100+
# Uncomment if you have tasks that create the project's static files in wwwroot
101+
#wwwroot/
102+
103+
# MSTest test Results
104+
[Tt]est[Rr]esult*/
105+
[Bb]uild[Ll]og.*
106+
107+
# NUNIT
108+
*.VisualState.xml
109+
TestResult.xml
110+
111+
# Build Results of an ATL Project
112+
[Dd]ebugPS/
113+
[Rr]eleasePS/
114+
dlldata.c
115+
116+
# .NET Core
117+
project.lock.json
118+
project.fragment.lock.json
119+
artifacts/
120+
121+
*_i.c
122+
*_p.c
123+
*_i.h
124+
*.ilk
125+
*.meta
126+
*.obj
127+
*.pch
128+
*.pdb
129+
*.pgc
130+
*.pgd
131+
*.rsp
132+
*.sbr
133+
*.tlb
134+
*.tli
135+
*.tlh
136+
*.tmp
137+
*.tmp_proj
138+
*.log
139+
*.vspscc
140+
*.vssscc
141+
.builds
142+
*.pidb
143+
*.svclog
144+
*.scc

README.md

+42-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,45 @@ For developing locally you should follow these steps:
3535

3636
- Other npm errors and troubles:
3737
- Delete all node_modules and package-lock.json and try reinstalling all packages.
38-
- ```npm i``` and ```npm run build``` in root
38+
- ```npm i``` and ```npm run build``` in root
39+
40+
41+
## Oppsett backend
42+
43+
**Med kubernetes**
44+
45+
1. F�lg [how-to for oppsett av kubernetes](https://confluence.atlassian.nhn.no/display/HR2/HOW-TO:+Kubernetes+Lokalt)
46+
2. F�lg [how-to for installasjon av hncli](https://confluence.atlassian.nhn.no/display/HR2/HNCli+-+Lokal+installasjon)
47+
3. Deploy tjenesten til kubernetes
48+
```powershell
49+
devspace deploy
50+
# N�s n� p�
51+
# - http://corefrontend-internalapi.localtest.me:30080
52+
```
53+
54+
4. Konfigurer
55+
```powershell
56+
dotnet-hncli dev config deploy --env-config dev-mot-k8s
57+
```
58+
59+
5. Du kan n� enten
60+
- A) Kj�r api inni kubernetes basert p� lokalt bygd image
61+
```powershell
62+
# Dette innb�rer for alle komponenter
63+
# - Docker image bygges lokalt
64+
# - Kubernetes podens image byttes ut med lokalt image
65+
devpace dev
66+
```
67+
- B) Kj�r api p� din lokale maskin, configurert mot kubernetes resurser, med riktig launch-profile. Evt F5 i Visual Studio.
68+
```powershell
69+
dotnet watch run --launch-profile corefrontend.InternalApi --project .\Source\InternalApi
70+
dotnet watch run --launch-profile corefrontend.ExternalApi --project .\Source\ExternalApi
71+
```
72+
73+
## Generer entities
74+
75+
Av ukjent grunn så genereres entities types i forskjellige rekkefølge på windows og linux, derfor må man nå generere de i linux.
76+
77+
1. Start Docker Desktop
78+
2. Start linux miljø: `docker run --rm -it -e HNDEV_PAT=$env:HNDEV_PAT -v ${PWD}\:/mnt/repo/ -w /mnt/repo mcr.microsoft.com/dotnet/sdk:8.0`
79+
3. Generer entities: `dotnet run --project Source/CoreFrontend.EntitiesGenerator/`

0 commit comments

Comments
 (0)