DanWahlin / Angular-JumpStart

Angular and TypeScript JumpStart example application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to login in this app

mayuryeole opened this issue · comments

I clone the project but not able to create new customer here.
Getting Error "Cannot POST /api/auth/login"
Please suggest.

Did you login successfully? You can use any email address and a password that's at least 6 characters long (with 1 digit). I just tried it out and everything seems to working as expected.

Hi, I'm unable to login to the application as I'm getting this error.
capture1

Are you running the steps in the readme? Make sure you're using npm start rather than ng serve to start the server.

Thank you it is working now. what is the difference between ng serve and npm start?

ng serve is a static file server (and it builds) for local Angular development. npm start is used here because it launches the Node.js RESTful service the app uses for data and also serves up the Angular files using the Node server.