GithubHelp home page GithubHelp logo

a12_setup's Introduction

Setup for Angular Course

Version 12.1.0.0
  1. A recent version of Windows (10 or later) or macOS, with current system updates and:

    • at least 4 GB of RAM
    • 8 GB is great
    • 16 GB is ideal
  2. Modern web browser:

  3. An IDE (Integrated Development Environment) or code editor of your choice – Visual Studio Code OR WebStorm recommended.

    Visual Studio Code and WebStorm are both excellent editors for JavaScript, TypeScript, and Angular. If you do not already have a preference, we recommend Visual Studio Code.

    • Visual Studio Code is a free download from

      Note that Visual Studio Code is NOT the same application as Visual Studio. It is a free open-source lightweight text editor similar to Sublime Text, Atom, or Brackets. It is a small quick install and is now the most popular development environment according to the Stack Overflow Developer Survey Results. It was created by the same guy who created the Eclipse IDE.

    • WebStorm is available (as an alternative to Visual Studio Code) from

    • IntelliJ IDEA Ultimate (is another alternative to Visual Studio Code) and is available from

      • https://www.jetbrains.com/idea/download/
      • WebStorm is made by the company Jetbrains who also makes IntelliJ IDEA.
      • It also contains the same editing features as WebStorm, and it has a similar free 30-day trial, so that is another possible option for class.
      • However, please note that the free IntelliJ IDEA Community Edition does NOT have the same level of support for JavaScript, TypeScript, and Angular, so anyone who plans to use IntelliJ in this class should have the Ultimate edition.
  4. Node.js installed, Version 12.x, 14.x, or 16.x

    • Please note, we will use a Long-Term Support (LTS) version 12.x, 14.x, or 16.x, because some earlier and later versions are not compatible with Angular 12 or with some important Node packages that we will use during class.

      Please DO NOT use Node 8.x or Node 10.x or Node 11.x or 13.x for this class.

    • If you have not installed Node yet, please

      • Visit http://nodejs.org/
      • Click the green 16.13.0 LTS (or similar) button on the left below the “Download for [your operating system]” heading to download the installer file.
    • After installation, please confirm that the Path environment variable on your computer has been modified to include the path for node and npm:

    • In a Mac Terminal prompt or a Windows command prompt (in Windows 7, click the Start button and type cmd), run the commands:

      node -v
      npm -v
      

      Which should return the version number of each program.

      NOTE:  If you already have another version of Node.js on your machine that you use to support an existing application and you do not want to overwrite/uninstall it, please see the article below about how to run multiple versions of Node.js using nvm for Windows or nvm on a Mac.
      
    • Next, please confirm that you are able to install npm packages by running this command:

      • npm install chalk -g
      • On Windows, this installation may produce some warnings. If you receive an ERROR (different from a warning) that begins Error: ENOENT, stat..., this error usually means that npm is expecting a directory named “npm”, and you just need to create an empty “npm” directory at the location indicated in the error message. Then you should be able to rerun the install command.
        Note: if you receive warnings but not an error, this is fine, and you do not need to rerun anything.
        
      • CERT or certificate issues sometimes result from corporate firewalls particularly if they use a self-signed certificate. This post discusses various approaches to getting npm to work behind a corporate firewall. https://stackoverflow.com/questions/13913941/how-to-fix-ssl-certificate-error-when-running-npm-on-windows
  1. Install the Angular CLI (as an Administrator if permitted) and confirm the installation:

    Note: depending on your security settings, you may or may not be able to run the command prompt as Administrator for this installation.  If you run into any difficulty, please let us know.
    
    If you are permitted, please start a Command prompt as Administrator.  In most versions of Windows, you can do this by navigating to `C:\Windows\System32` in Windows Explorer, then right-click on `cmd.exe`, and select `Run as administrator`.
    

    In a Mac Terminal prompt or a Windows command prompt, please run this command:

    npm install -g @angular/cli@12
    
    • The installation may produce some warnings, but it should not have any errors. After running the install command, you can confirm a successful installation by running the command “ng v” (this should report the version of Angular CLI that’s installed).
      • You should have version 12.x.x of the Angular CLI for the course. Note that older versions of the Angular CLI work with older versions of Angular but not Angular 12 used in this course.
      • If you have a previous version of the Angular CLI use the following command to update it:
      npm update -g @angular/cli@12
  2. Create a new project with the Angular CLI

    • Create an empty directory named ngverify on your machine in a location where you have permissions to create and edit files (for example, c:\ngverify OR c:\users\[username]\Documents\ngverify)

    • In the Administrator command prompt from the previous step, change the current directory to ngverify

    • Run the command:

          ng new demoproject --defaults=true
      • This command will take some time as it is downloading several libraries from npmjs.com.
      • When the command is finished, verify the output.

        Note that if you receive warnings but not an error, this is fine, and you do not need to rerun anything.

    • Run the command:

      cd demoproject
      
    • Run the command:

      ng serve -o
      
      • The Angular application will build and open your default web browser and display the message ‘demoproject app is running!’

        Note: If Internet Explorer is your default browser, you may receive a blank page. If this is the case:

        • copy the current URL: http://localhost:4200 from IE into another browser such as Chrome, Edge or Firefox
        • In the new browser you should see the message ‘demoproject app is running!’ We will review how to configure Angular to work with Internet Explorer in class.
    • Close your browser tab and the command prompt.

  3. Internet access for all attendees and the instructor is required.

  4. You will need to have a Git installed. To verify it is installed open a terminal or command-prompt and run the command:

    git --version
    
  1. Your computer is now ready for class – you may exit from the Terminal / command prompt and any other programs that you were using in the setup.

a12_setup's People

Contributors

craigmckeachie avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.