Skip to content

Commit

Permalink
更新使用说明
Browse files Browse the repository at this point in the history
更新使用说明步骤
  • Loading branch information
iamxiaoma committed Jun 28, 2017
1 parent 2c113af commit cafbb4f
Showing 1 changed file with 85 additions and 0 deletions.
85 changes: 85 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,87 @@
# framework7-vue-h5plus
iOS and Android Apps with Framework7 Vue & H5Plus - develop, build and deploy - free and open source!

## Requirements

* framework7 `^1.6.3`
* framework7-vue `^0.8.5`

To build and run apps, you need to install SDKs for each platform you wish to target.
To check if you satisfy requirements for building the platform:

``` bash
$ cordova requirements

Requirements check results for ios:
Apple OS X: installed darwin

```

## Dependencies

F7VueH5Plus use `npm` to manage third-party packages now.

Then install all dependencies, in repo's root:

```
$ sudo npm install
```

## Mock Server

Before create your first cordova app, please install `http-server` globally so that you can run a mock server with zero configuration.

```
$ sudo npm install http-server -g
```

in repo's root:

```
$ http-server ./mock_api -p 4000 --cors
```

### Check out source code

```
$ cd F7VueH5Plus
$ git init
$ git remote add origin https://github.com/iamxiaoma/framework7-vue-h5plus.git
$ git fetch
$ git reset --hard origin/master
```

### Build the App

Run the following command to iteratively build the project:

```
$ sudo npm run build
```


## Web App Guides

### Preview

F7VueH5Plus use webpack browser sync server to develop, Just run it in repo's root:

```
$ sudo npm run dev
```

Web app will be available on `http://localhost:3000/`

### Release

```
$ sudo npm run build
```

The result is available in `www/` folder.

## License

Copyright (c) 2017 framework7.cn MIT Licensed, see [LICENSE] for details.

[http://framework7.cn]: http://framework7.cn

0 comments on commit cafbb4f

Please sign in to comment.