RickStrahl / AlbumViewerVNext

West Wind Album Viewer ASP.NET Core and Angular Sample
505 stars 353 forks source link

Problem running angular project #4

Closed punkouter2021 closed 7 years ago

punkouter2021 commented 7 years ago

I do npm install/npm start

The project loads but I get

Unknown server failure.

Am I suppose to first start 'AlbumViewerNetCore' as well in Visual studio so the services are there for the angular project to find ?

RickStrahl commented 7 years ago

Where you're getting these instructions from? You shouldn't be running the sample server with npm start. You need to run ng serve to run the dev server.

Please look at the install instructions on the main readme page.

Here are the client configuration steps: https://github.com/RickStrahl/AlbumViewerVNext#to-develop-the-albumviewer-angular-2-example

punkouter2021 commented 7 years ago

Still can't get it to work . Am I suppose to run the dotnet app and THEN the client app? The client app is getting a server error.

RickStrahl commented 7 years ago

If you clone as is, the app should be able to run just from the .NET install as the built html and assets are all copied into the wwwroot folder.

The instructions on the Readme page with Getting Started work for me as is from a freshly cloned repo.