Skip to content

devonfw-ng-adv-training/ng-universal

Repository files navigation

Getting started

Install prerequisites

Git

Check if you have a Git client already installed:

git --version

If your OS can not recognize this command, install Git. For details please refer to this page. When installing under Windows, please make sure you check the following option:

  • Use git from Windows command prompt

Node.js

All examples have been implemented using Node.js 8.11.1.

It is highly recommended to install the Node Version Manager which manages multiple active Node.js versions on your machine. The latest windows version of nvm can be downloaded here.

Having the Node Version Manager installed, install Node.js:

nvm install 8.11.1

and set it to be used:

nvm use 8.11.1

npm

Having the Node.js installed you have also its package manager - npm installed. We have been using the 5.6.0 version of npm.

Check your current npm version:

npm --version

If it's less than 5.6.0, then:

npm install -g npm@5.6.0

Angular CLI

Having npm installed you can install Angular CLI like this:

npm install -g @angular/cli

Clone, install dependencies and run

Clone this repository and go to the 0-start branch:

git clone https://github.com/devonfw-ng-adv-training/ng-universal.git -b 0-start

Install dependencies using npm:

cd ng-universal
npm install

This may take several minutes...

Start the application:

npm start

This npm script starts the backend server on port 9000 and the frontend development server on port 4200 which proxies all REST calls to the backend server. Go to http://localhost:4200