Skip to Content
Beginning Server-Side Application Development with Angular
book

Beginning Server-Side Application Development with Angular

by Bram Borggreve
April 2018
Intermediate content levelIntermediate
110 pages
2h 12m
English
Packt Publishing
Content preview from Beginning Server-Side Application Development with Angular

Implementing a Web Server

Now that both our applications can be built, we can move on to creating a simple server to host our applications.

In order to do this, we will create a simple Node.js server based on Express.js.

We will define our server in a TypeScript file called server.ts and run this file using the ts-node binary that we will install.

Note

The current implementation of Angular Universal depends on Node.js as it is implemented in JavaScript.

It is possible to run Angular Universal apps using other servers, such as ASP.NET, although under the hood the ASP.NET server will invoke a Node.js process to handle the Angular Universal part.

An example repository of how to run Angular Universal can be found here: https://github.com/MarkPieszak/aspnetcore-angular2-universal ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Server-Side Enterprise Development with Angular

Server-Side Enterprise Development with Angular

Bram Borggreve
Building Large-Scale Web Applications with Angular

Building Large-Scale Web Applications with Angular

Chandermani Arora, Kevin Hennessy, Christoffer Noring, Doguhan Uluca
Angular UI Development with PrimeNG

Angular UI Development with PrimeNG

Oleg Varaksin, Sudheer Jonna

Publisher Resources

ISBN: 9781789342161Supplemental Content