locked
How to launch Angular 1 file system application. RRS feed

  • Question

  • User1421620300 posted

    How are you. This question that i am about to ask is relative to Visual Studio Code! I am partially new to programming front end applications. I wanted to know what is the most common ways to launch this type of application? Other applications that i have are run on Gulp. node, express etc. But i have an app that only has the following directories Is there an alternative other than installing Gulp! 

    package-lock-json

    package.json

    index.html

    Node_Modules

    Wednesday, May 29, 2019 7:26 PM

Answers

  • User839733648 posted

    Hi Markus33,

    According to your description, I suggest that you could copy the files to VS code and use npm install to install a package.

    npm install installs a package, and any packages that it depends on.

    By default, npm install will install all modules listed as dependencies in package.json.

    You could check package.json to know which kind of the project is.

    For more about npm, you could refer to the official documentation: https://docs.npmjs.com/cli/install

    Best Regards,

    Jenifer

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 30, 2019 3:21 AM
  • User-474980206 posted

    angular uses node/express which you are used to. it also uses webpack and node scripts instead of gulp. the current version of angular use the angular cli (which is a set of node scripts installed globally).  once the angular cli is installed you:

       ng serve

    this will compile the angular program via webpack and start an express instance to host the site.  

    if you are not using a current version of angular, then look in the package.json for the script definitions. npm knows how to run these scripts. typically its:

       npm start

    to start an express (or whatever web server was chosen) instance.

      npn run build

    to do a build. but again look at the scripts section in the project.json.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 30, 2019 3:27 PM

All replies

  • User839733648 posted

    Hi Markus33,

    According to your description, I suggest that you could copy the files to VS code and use npm install to install a package.

    npm install installs a package, and any packages that it depends on.

    By default, npm install will install all modules listed as dependencies in package.json.

    You could check package.json to know which kind of the project is.

    For more about npm, you could refer to the official documentation: https://docs.npmjs.com/cli/install

    Best Regards,

    Jenifer

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 30, 2019 3:21 AM
  • User-474980206 posted

    angular uses node/express which you are used to. it also uses webpack and node scripts instead of gulp. the current version of angular use the angular cli (which is a set of node scripts installed globally).  once the angular cli is installed you:

       ng serve

    this will compile the angular program via webpack and start an express instance to host the site.  

    if you are not using a current version of angular, then look in the package.json for the script definitions. npm knows how to run these scripts. typically its:

       npm start

    to start an express (or whatever web server was chosen) instance.

      npn run build

    to do a build. but again look at the scripts section in the project.json.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 30, 2019 3:27 PM