Skip to content

Commit 4fc0ac1

Browse files
committed
update readme
1 parent c4be3d4 commit 4fc0ac1

File tree

2 files changed

+25
-18
lines changed

2 files changed

+25
-18
lines changed

README.md

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,45 @@
1010
4. [Eslint](https://github.com/eslint/eslint)
1111
5. [Postcss](https://github.com/postcss/postcss)
1212

13-
## Start
13+
## Get Started
1414

15-
- Clone or download this repository
16-
- Enter your local directory, and install dependencies:
15+
### [vue-cli](https://github.com/vuejs/vue-cli)
16+
17+
#### Init Project
1718

1819
``` bash
19-
npm install
20+
$ npm install -g vue-cli
21+
$ vue init Plortinus/vue-multiple-pages new-project
22+
$ cd new-project
23+
$ npm install
2024
```
2125

22-
## Dev
26+
#### Dev
2327

24-
``` bash
28+
```bash
2529
# serve with hot reload at localhost:8010
26-
npm run dev
27-
30+
$ npm run dev
2831
```
2932

30-
[http://localhost:8010/user/login.html](http://localhost:8010/user/login.html)
33+
visit [http://localhost:8010/user/login.html](http://localhost:8010/user/login.html)
3134

32-
[http://localhost:8010/user/index.html](http://localhost:8010/user/index.html)
35+
visit [http://localhost:8010/user/index.html](http://localhost:8010/user/index.html)
3336

34-
[http://localhost:8010/customer/index.html](http://localhost:8010/customer/index.html)
37+
visit [http://localhost:8010/customer/index.html](http://localhost:8010/customer/index.html)
3538

36-
## Build
39+
#### Build
3740

38-
``` bash
39-
# build for production with minification
40-
npm run build
41-
node server.js
41+
```bash
42+
$ npm run build
43+
$ node server.js #listen 2333 port
4244
```
4345

44-
[http://localhost:2333/user/login.html](http://localhost:2333/user/login.html)
46+
visit [http://localhost:2333/user/login.html](http://localhost:2333/user/login.html)
47+
48+
visit [http://localhost:2333/user/index.html](http://localhost:2333/user/index.html)
49+
50+
visit [http://localhost:2333/customer/index.html](http://localhost:2333/customer/index.html)
51+
4552

4653
## Root Folder Structure
4754

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-multiple-pages",
3-
"version": "1.0.0",
3+
"version": "3.0.0",
44
"license": "MIT",
55
"description": "A modern Vue.js multiple pages starter which uses Vue 2, Webpack2, and Element-UI",
66
"devDependencies": {

0 commit comments

Comments
 (0)