todoapp-angular-ngrx icon indicating copy to clipboard operation
todoapp-angular-ngrx copied to clipboard

App not loading when serving

Open ragavanrajan opened this issue 6 years ago • 1 comments

Hi Noman, I have cloned the app and I followed the instructions to serve the app. But the app keeps on throwing the error in the console. I have checked the environment file. The URL is pointed to http://localhost:3000/

To serve the app: ng serve --port 4302 --open

Error in the console:

image

And in the browser: it keeps loading

image

Kindly help what am I doing wrong?

ragavanrajan avatar Mar 26 '18 19:03 ragavanrajan

@ragavanrajan , Did you clone and ran the NodeJS Api project too ? You need to clone this repo - https://github.com/nomanHasan/todo-api and then follow the instructions to run it before using this client project.

  1. Install and Run Mongodb.
  2. Clone and Run https://github.com/nomanHasan/todo-api
  3. Clone and Run https://github.com/nomanHasan/todoapp-angular-ngrx

If you did all that - it should be working. If it didn't please share the response of this url - http://localhost:3000/api/todos

nomanHasan avatar Mar 27 '18 17:03 nomanHasan