Installing SproutCore
The easiest way to install SproutCore is as a RubyGem:
sudo gem install sproutcore
You can see all the different ways to install SproutCore in the how-to.
Your First App
- $ sc-init HelloWorld
~ Created directory at hello_world ~ Created file at hello_world/Buildfile ~ Created file at hello_world/README ~ Created directory at apps ~ Created directory at apps/hello_world ~ Created file at apps/hello_world/core.js ~ Created file at apps/hello_world/main.js ~ Created directory at apps/hello_world/resources ~ Created file at apps/hello_world/resources/loading.rhtml ~ Created file at apps/hello_world/resources/main_page.js Your new SproutCore project is ready! To get started, you can find your initial application in the "apps" directory. - $ cd hello_world
- $ sc-server
SproutCore v1.0.1037 Development Server Starting server at http://0.0.0.0:4020 in debug mode To quit sc-server, press Control-C >> Thin web server (v1.2.5 codename This Is Not A Web Server) >> Maximum connections set to 1024 >> Listening on 0.0.0.0:4020, CTRL+C to stop - Open http://localhost:4020/hello_world in your browser
You should see the following:
Congratulations! Your first SproutCore app is running.
Getting Help
If you have questions, or trouble installing SproutCore, these are the places to go:
- SproutCore Wiki
- SproutCore Google Group
- Our IRC channel, #sproutcore on irc.freenode.net
What’s Next?
SproutCore is a full application framework. It’s designed to assist you in creating the fastest and most robust apps possible. We offer a lot of things to help you achieve that, but familiarizing yourself with all of those tools can be daunting at first. Here are some places you can start:
-
Todos Tutorial
A step-by-step tutorial that will show you how to build an entire app from scratch. -
Sample Code
A list of demos with available source code. - SproutCore Wiki or the reference documentation
