CoffeeTime is an Ionic app for keeping score of coffee debt in an organization.
First, you should probably have ionic:
$ npm install -g ionicThen install bower, if you don't already have it:
$ npm install -g bower
Next, you'll need gulp for compiling sass:
$ npm install -g gulp
Run:
$ npm install
and
$ gulp init
This will download the most recent Ionic release from bower, and copy over the SCSS files into ./sass for future editing..
There are several ways to develop an Ionic project. The most familiar to front-end web developers will be to use a web browser to preview your work. To do that, you need to do the following:
-
Run
gulp watchfrom the project directory to start watching your sass files. -
Go into the
wwwdirectory of the project and startup a simple web server. You can use whatever you're most comfortable with to do this, but we recommend either Anvil or http-server.
You can also run the project in the ios simulator or on an actual android device. A simple way to do the ios simulator is to go into the project directory and type:
$ ionic emulate
If that fails, try running ionic platform ios and running the above command again.