• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Todos Intro

Page history last edited by Ido Ran 13 years, 4 months ago

Welcome to SproutCore!

 

This tutorial is designed to take you through the entire process of building and deploying a SproutCore application.  By the end of this tutorial you will have created a fully functioning SproutCore application, hooked it up to a backend server, localized it, added some static landing pages, and finally built and deployed the app to a standard Apache web server.

 

If you want to experience the entire process of building a SproutCore application from start to finish, this tutorial is for you.  It is designed for developers new to SproutCore who have worked through at least the Hello World tutorial on the main SproutCore site.

 

Implementing Persistent Storage

 

When building the backend, you will be given a choice of several different backend technologies to use.  SproutCore works with any server-side tech so pick the one that works best for you.  If you don't find your favorite server technology, consider adding it; it's open source!

 

Before You Begin

 

To run this tutorial, you will need to have your machine set up for basic SproutCore development.  You will need to install the SproutCore build tools along with some other developer tools to get the most out of your work.  You will need the following:

 

 

  1. SproutCore 1.0.  Open your terminal and type "sudo gem install sproutcore".  If that doesn't work follow these more detailed instructions.
  2. A web browser with dev tools. We recommend Safari 4 or later with the Develop menu enabled.  You can also use Firefox with Firebug.
  3. A command line. (Like Terminal on the Mac)
  4. Your favorite text editor (We like TextMate with the SproutCore.tmbundle installed)

 

Optionally, you may also enjoy using HTTP Client on the Mac to test and debug your server-side app.  HTTP Client is a visual GUI tool for sending HTTP requests to a server.  It's a user friendly version of curl.  If you are not on a Mac or can't get this app, you can also use a web browser or curl instead.

 

Taking a Shortcut Using Git

 

If you don't want to enter code yourself for a tutorial step, or if you get lost and need to double check your work, you can find the code for each stage of this tutorial in our Git repository.  This is especially useful if you want to use one of the backend servers without having to build it yourself.

 

To get this code, clone the sample todos repository by typing in the following on the command line:

 

git clone git://github.com/sproutit/samples-todos.git

 

This will checkout the git repo into a directory called samples-todos.  You can get the code for each step by changing into this directory and typing the following the first time:

 

git checkout -b step-X origin/step-X

 

where "X" is the tutorial step you want to observer.  This will create a local branch with the code you want to use applied.  After you use this command once for a step, you can checkout that same step again later by simply typing:

 

git checkout step-X

 

TIP:  Type 'git branch -a' to see all available steps in terms of branches.

 

Getting Help

 

If you need help on this tutorial, please join us on IRC on #sproutcore at freenode.net or visit the SproutCore Google Group where some friendly folks will be happy to lend a hand.

 

Moving On

 

OK, you’re ready to begin! Go to step 1.

Begin Tutorial: Step 1: Create Your SproutCore Application »

 

Table of Contents

 

 

Comments (0)

You don't have permission to comment on this page.