So to here is how you setup an Ionic project from existing source
- Download the project from your source repository, most of us should be using git now. e.g.
> git clone <project URL>
- Then change directory to the project directory and run npm install to install all the plugins and modules defined in package.json
> cd <project>
> npm install
- Finally run bower install to install all javascript libraries that is defined in bower.json. If you didn't install bower, I highly recomend that you use bower to manage the javascript libraries that is needed by Ionic. You can check bower website for more info.
> bower install
That's it you can now run the following command to test and debug your app.
- To run the app in browser
> ionic serve
- To run on device
> ionic platform add <platform>
> ionic run
Happy Coding!
No comments:
Post a Comment