my_app's Introduction
== Welcome to SproutCore Builder This is an application package for building a SproutCore application. To get started, edit your JavaScript application in the clients directory (we've already created one for you.) Then, start the SproutCore Dev Server by running from this directory: sc-server This takes all the same arguments as mongrel. You can now visit your app by going to: http://localhost:4020/my_app == What Goes Where Here is a brief description of the various parts of the SproutCore app: * *clients:* Each folder in the clients directory contains a single-page application you can load in your web browser. By default the URL to reach each application is the /directory-name. You will do most of your editing here. * *frameworks:* Each folder in the frameworks directory is a SproutCore library that your client applications can use. No HTML will be generated for these frameworks, but any JavaScript, CSS or other images you place in here will be accessible through your web browser. * *public:* This directory contains any other static resources your other apps needs to be able to use. If you have static HTML or other basic files you want to have access to. If you start your server in production mode, cached output will also be saved into this directory. * *lib:* Any ruby files you place in this directory will be automatically loaded when the sproutcore server start or when you do a static build. If you write any custom view helpers, you can place them here. * *setup.yaml:* This is a config file that you can use to set various load options for the clients and frameworks in your app. The default options are specified in the default: group. You can override the default for specific frameworks or clients by naming them. == Using Frameworks Frameworks are automatically automatically available in your app. You can also name frameworks available anywhere in your load path (including those installed in gems). The SproutCore gem comes with the latest versions of prototype, sproutcore, and sproutapp frameworks installed. All you need to do is indicate that you require them. == Deploying your SproutCore App Normally you will use the sc-server to host your application while you are developing your code. Once you are ready to deploy, however, there are two ways you can do it: ==== 1. Use sc-server in production. The SproutCore server can be run in a production mode that will simply generate and cache web-optimized versions of all of your resources upon request. For a low-traffic or newer site, this approach is an easy way to get your code into production. You just replace your directory with your latest files and the sc-server will start serving the new resources. ==== 2. Do a static build In general, however, loading all of your resources through a Ruby-app is not the best, especially when you could use a high-speed server such as lighttpd that is optimized for serving static content. If you want real speed, do a static build of your content and serve it through lighttpd or apache. Do the static build, just run: sc-build This will place a directory in tmp/build that contains all of your resources pre-compiled and ready for static serving.
my_app's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.