Building and running the Universal App
Now that you have the Nest.js and Angular files setup, it is almost time to run the project. There are a number of configuration files that need your attention and are found in the example project: https://github.com/backstopmedia/nest-book-example. Up until now we have been running the project with nodemon
so that our changes are reflected whenever the project is saved, but, now that we are packaging it up to be serving an Angular App we need to build the server using a different package. For this, we have chosen udk
, which is a webpack
extension. It can both build our production bundles as well as start a development server, much like nodemon
did for our plain Nest.js app. It would be a good idea to familiarize yourself with the following configuration files:
angular.json
-Our Angular config file that handles things like, what environment file to use, commands that can be used withng
, and the Angular CLI command.package.json
-The project global...