- Open .sln from visual studio, start the backend, remember to port number it's running.
- Open Client folder using visual studio code, cd into takeHomeToDoClient\todo-app\src\app\app.component.ts, change the 'BASE_API_URL' into the port number that the backend is running
- ng serve, start the client
- Remember the port number that the Client is running, change this line in your Program.cs
app.UseCors(options => { options.WithOrigins("http://localhost:") .AllowAnyMethod() .AllowAnyHeader(); });
- Restart the backend
- Refresh the frontEnd, now frontend and backend is connected for local development