So far you've mastered that:
1) Pressing enter in the Steroids console — opened by running $ steroids connect — lets you push changes made in your app to all connected devices.
2) The steroids.config.location property in config/application.coffee sets up the initial view of your app.
Let's dig deeper!
Steroids gives you full access to Cordova's APIs. Let's try out one straight away:
Next, time for a few short excercises.
Steroids automatically loads the correct version of cordova.js, regardless of your platform (i.e. iOS or Android). Now, find out how we do this by looking at the source code of this document at www/tutorial.html.
You'll want to share your awesome app with others, so let's practice that. Open a new Terminal window, go to your Steroids project folder and run
$ steroids deploy
A build of your app will be uploaded to AppGyver Cloud, and a browser window will open with a QR code and a shareable URL. Anyone can then scan the QR code with AppGyver Scanner to view your app.
After making changes to your project, simply run the $ steroids deploy command again to update your cloud-deployed build.
Note that after this exercise, you need to change config/application.coffee's steroids.config.location property back to "http://localhost/tutorial.html" to return to this document, so be prepared!
To jump-start your development, Steroids comes bundled with several examples demonstarting Cordova APIs and other features of Steroids.
In your project folder, run
$ steroids generate
At the end of the output, you get a list of available examples. Let's try the Cordova camera one. Run
$ steroids generate example camera
Follow the instructions, test out the camera example and then return to this tutorial.
For then next tutorial, run
$ steroids generate tutorial steroids