Skip to content

Commit 8cc48a1

Browse files
committed
updated readme for prod server
1 parent 08fbdb7 commit 8cc48a1

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,39 @@ demo-app
4747
└── webpack.config.prod.js
4848
```
4949

50+
```
51+
create-react-webpack demo-app -e
52+
```
53+
54+
It incules the node server for deploying into production into your `demo-app`, with below file footprint.
55+
56+
```
57+
demo-app
58+
├── README.md
59+
├── node_modules
60+
├── package.json
61+
├── .gitignore
62+
├── .babelrc
63+
├── .eslintrc.json
64+
├── .eslintignore
65+
├── .prettierrc
66+
├── .prettierignore
67+
├── public
68+
│   ├── favicon.ico
69+
│   ├── index.html
70+
│   └── manifest.json
71+
├── server
72+
│   └── index.js
73+
├── src
74+
│   ├── App.css
75+
│   ├── App.js
76+
│   ├── App.spec.js
77+
│   └── index.js
78+
├── webpack.config.base.js
79+
├── webpack.config.dev.js
80+
└── webpack.config.prod.js
81+
```
82+
5083
## Available Scripts
5184

5285
After creating project directory you can run following scripts:-
@@ -56,6 +89,11 @@ After creating project directory you can run following scripts:-
5689
builds the application for production to the `dist` folder inside directory.<br>
5790
Uses webpack `prod` `config` along with `base` `config`
5891

92+
### `npm start`
93+
94+
Start the production server on default port `3000`.<br>
95+
Read files from `dist` folder.
96+
5997
### `npm run dev`
6098

6199
Start the development server on default port `8080`.<br>

0 commit comments

Comments
 (0)