When I find all the instances of port 9000 and change it to 4200, the application runs but I cannot hit the courses api. I get a 404 error. Also, when I run it under port 9000 using "npm start", the command line shows:
Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/
I figured it out. I put everything back to port 9000. I have to run "npm run server" to start the server, then run "npm start" in a separate terminal to start the application. I missed the first step
I am trying to run this app in visual studio code but I am getting "this site cannot be reached" when using port 9000,
Config: Windows 10 Enterprise, build 19044.1645
Angular CLI: 13.0.4 Node: 16.14.2 Package Manager: npm 6.14.5 OS: win32 x64
Angular: 13.0.3 ... animations, cdk, common, compiler, compiler-cli, core, forms ... language-service, material, material-moment-adapter ... platform-browser, platform-browser-dynamic, router
@angular-devkit/architect (0.1300.4) @angular-devkit/build-angular (13.0.4) @angular-devkit/core (13.0.4) @angular-devkit/schematics (13.0.4) @angular/cli (13.0.4) @schematics/angular (13.0.4) rxjs (6.5.4) typescript (4.4.4)
When I find all the instances of port 9000 and change it to 4200, the application runs but I cannot hit the courses api. I get a 404 error. Also, when I run it under port 9000 using "npm start", the command line shows:
Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/
Any help is appreciated.