Angular 2 + Node.js Setup

Опубликовано: 24 Октябрь 2024
на канале: JsWiz
21,785
58

Master Angular build 7 Apps - https://goo.gl/Km5P7N

Repo is here: https://goo.gl/valig8

In this video we look at two different options to developing an application using Angular and Node.js. The first option involves running one node server then compiling any changes made to our typescript files in a separate terminal.

The second option we run 2 servers, a node server and a lite server that watches for any changes made to our typescript files then recompiles the code and restarts our server.

In these examples I've also included socket.io to send events from the client to the server and vice versa.

When only running a node server in OptionA, we need to use gulp to copy over our frontend files into a lib folder inside of our public folder.