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

  1. $ 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.
  2. $ cd hello_world
  3. $ 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
  4. Open http://localhost:4020/hello_world in your browser

You should see the following:

Screenshot of Hello World app

Congratulations! Your first SproutCore app is running.

Getting Help

If you have questions, or trouble installing SproutCore, these are the places to go:

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:

⇡ Return to top