Hello World Tutorial 1: Getting Started


Welcome to SproutCore! SproutCore is a powerful framework that makes it easy to build desktop-quality JavaScript applications on the web. This tutorial will take you through the basics of creating a new SproutCore project and making your first views. This is a work in progress, so please send feedback or ask questions as you work through this!

 

Step 1. Installing SproutCore

 

IMPORTANT: To set up SproutCore 1.0 please see this page.

 

If you haven’t yet installed SproutCore, it’s really easy if you have Ruby installed on your machine. Just type:

sudo gem install sproutcore

 

And you are done! (Note that if you are on a Mac, you will need the developer tools installed as well for Ruby to work.) If you have further issues, you can find more info on our download page.

 

If you are on a machine without Ruby, if you are on Windows for example , or if the above install fails for you, visit theSproutCore Download Page for some (slightly) more involved ways to get going.

 

Step 2. Creating Your First Project

 

NOTE: If you are using the SproutCore 1.0 BETA not installed using RubyGems, you will need to use the path to these tools.

 

SproutCore comes with a complete set of build tools that will automatically assemble and optimize your HTML, CSS, and JavaScript. The first thing you want to do for any new site is to create a new SproutCore project to keep all of your files. To do this, just open your terminal, switch to a directory you want to work in and type:

sc-init hello_world

 

This will create a new project for you with all of the basic files you need to get started. If you open up this folder, you will see a directory called “apps”. This is where you will keep each SproutCore app you build for a site. Each web page you load with SproutCore on it will be a separate client. You can see here that SproutCore has created your first client for you, conveniently named “hello_world”.

 

cd into the root directory of your project (the one with the clients directory in it) and start the SproutCore server. This server dynamically assembles your content while you develop your code. To start it, just type:

cd hello_world
sc-server

 

And you’re good to go. Open a web browser (FireFox or Safari for now) and visit http://localhost:4020/hello_world, you should see something like this:

 

 

Great! You have SproutCore up and running. Now let’s start writing some code.

 

Go to Hello World Tutorial 2: Your First Views 

 

Essay
Essay Writing
Essay Writing Service
Essay Writing Service UK