Skip to content

Commit e975fe8

Browse files
committed
Readme Update for SSR scripts
1 parent 64906f0 commit e975fe8

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

README.md

+10-9
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,43 @@
22

33
[![Build Status](https://travis-ci.com/meetdave3/Angular6-Node.js-TypeScript.svg?branch=master)](https://travis-ci.com/meetdave3/Angular6-Node.js-TypeScript)
44

5-
This project is a starter project with Node at the backend (fully written in TypeScript) and Angular 6 at the frontend.
5+
This project is a starter project with Node at the backend (fully written in TypeScript) and Angular 6 on the client side.
66

77
This repo shall allow you to instantly get started with a full stack project in place. Just connect it with your favorite database and you're good to go.
88

99
## Repo Features
1010

11-
- [x] Angular 6.0.0
11+
- [x] Angular 6.0.9
1212
- [x] Bootstrap
1313
- [x] Lazy Loaded Routes
1414
- [x] Angular Material
15-
- [x] PWA
15+
- [x] PWA Ready
1616
- [x] Server Side TypeScript
1717
- [x] Node.js API
1818
- [x] Production Ready Build
19+
- [x] Server Side Rendering (Angular Universal)
1920

2021
## Setup
2122

2223
After cloning, run `npm install`
2324

2425
## Development server
2526

26-
Run `ng build --watch`
27+
Run `ng serve`
2728

28-
After the --watch build, `npm run dev` for a dev server. Navigate to `http://localhost:3000/`.
29-
30-
The app will automatically reload if you change any of the source files. (Server side as well as client side)
29+
Navigate to `http://localhost:4200/`.
3130

3231
## Code scaffolding
3332

3433
Run `ng g c component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
3534

3635
## Production Build
3736

38-
First run `ng build --prod` to build the project
37+
Run `npm run build:ssr && npm run serve:ssr` to build the project
38+
39+
Compiles the boiler application and spins up a Node Express to serve the Boiler Universal application on http://localhost:3000
3940

40-
Then, `npm run prod` to start the node server for production. The build artifacts will be stored in the `dist/` directory.
41+
`npm run build:prerender && npm run serve:prerender` - Compiles your application and prerenders your application's files, spinning up a demo http-server so you can view it on http://localhost:8080 Note: To deploy your static site to a static hosting platform you will have to deploy the dist/browser folder, rather than the usual dist
4142

4243
## Running unit tests
4344

0 commit comments

Comments
 (0)