This project is created according to Angular universal guide.
- Download the project
- Run the following 2 commands respectively in command line
npm build:aot
npm build:uni
- Run
npm serve:uni
to run the project in local. Also, the project can be deployed to any node.js server such as Heroku.
Run npm build:aot
to build the project. The build artifacts will be stored in the src/dist/
directory. Use the -prod
flag for a production build.
Run npm serve:aot
to run the project. Navigate to http://localhost:3100/
.
Run npm build:uni
to build the project. The server side build artifacts will be stored in the dist/
directory.Use the -prod
flag for a production build.
Run npm serve:uni
to run the project. Navigate to http://localhost:3200/
.