You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.3 KiB

3 years ago
  1. ## Important Information
  2. This repository is exclusively meant for presenting samples of code.
  3. The Files and Codes present in this repository are part of a running project. In order to ensure the security of the project several files have been intentionally removed. The codes are exclusively for viewing purpose and will not execute properly if tried.
  4. # Installation pre-requisites
  5. For taking the course we recommend installing Node 12. These are some tutorials to install node in different operating systems:
  6. - [Install Node and NPM on Windows](https://www.youtube.com/watch?v=8ODS6RM6x7g)
  7. - [Install Node and NPM on Linux](https://www.youtube.com/watch?v=yUdHk-Dk_BY)
  8. - [Install Node and NPM on Mac](https://www.youtube.com/watch?v=Imj8PgG3bZU)
  9. To easily switch between node versions on your machine, we recommend using a node virtual environment tool such as [nave](https://www.npmjs.com/package/nave) or [nvm-windows](https://github.com/coreybutler/nvm-windows), depending on your operating system.
  10. For example, here is how you switch to a new node version using nave:
  11. # note that you don't even need to update your node version before installing nave
  12. npm install -g nave
  13. nave use 12.3.1
  14. node -v
  15. v12.3.1
  16. # Installing the Angular CLI
  17. With the following command the angular-cli will be installed globally in your machine:
  18. npm install -g @angular/cli
  19. # How To install this repository
  20. We can install the master branch using the following commands:
  21. git clone https://github.com/angular-university/ngrx-course.git
  22. This repository is made of several separate npm modules, that are installable separately. For example, to run the au-input module, we can do the following:
  23. cd ngrx-course
  24. npm install
  25. Its also possible to install the modules as usual using npm:
  26. npm install
  27. This should take a couple of minutes. If there are issues, please post the complete error message in the Questions section of the course.
  28. # To Run the Development Backend Server
  29. We can start the sample application backend with the following command:
  30. npm run server
  31. This is a small Node REST API server.
  32. # To run the Development UI Server
  33. To run the frontend part of our code, we will use the Angular CLI:
  34. npm start
  35. The application is visible at port 4200: [http://localhost:4200](http://localhost:4200)