nomanHasan / todoapp-angular-ngrx

An Angular app where tasks can be created, read, updated and deleted and completed. The state management was done with Reactive, functional state management library - NgRx.
19 stars 15 forks source link

App not loading when serving #1

Open ragavanrajan opened 6 years ago

ragavanrajan commented 6 years ago

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?

nomanHasan commented 6 years ago

@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