Problems with the angular server

0

I recently started making a web application in angular, and now I'm going back to the project, the question is that I want to compile by going to link and I do not nothing appears, I do not compile the project, I do not know how to upload it to the server, try everything, or I do not know if it buje the node js! help.

    
asked by Gabriel Campi 23.03.2018 в 23:00
source

1 answer

1

If you had the project in some version control (gitlab, github, etc) and came back to clone it, you should do a

npm install

to download all the dependencies that it needs to work, if you are looking to run your project in development mode, use the angle CLI using the command

ng serve

That will raise a local server and you can run your project usually at the address link (noting that you have not modified the angle-cli. json), on the other hand if what you want is to put your project into production you must compile the project in order to upload it, if this is your case, use the command

ng build --prod

that generates a folder / dist in the root of your project that is what you need to upload to your production server

    
answered by 24.03.2018 в 00:29