Skip to content

seans23/stackmob-javascript-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StackMob Javascript Examples

Welcome! You're here because you downloaded the JS SDK Starter zip or you've forked/cloned the JS Examples GitHub repo.

Here are several examples utilizing the JS SDK. Feel free to use the code as you wish - copy, reuse.. recycle?

There are demos and examples for your reference.

Do you need a GitHub project to try StackMob hosting? Feel free to use this one by forking it to your GitHub account!

You can find the stackmob-javascript-examples repo at https://github.com/stackmob/stackmob-javascript-examples

Contents

The root folder has index.html which will get you started right away!

Included are examples housed in each respective folder.

There is also the StackMob Web Server (stackmobserver.py) included for testing your application locally.

Running the Examples

You'll need to initialize StackMob.init({ ... }) with your application's information. Some of these examples also need specific schemas and relationships set up. These will be described in the example pages and respective READMEs.

First, initialize Stackmob within each example file (index.html, api/examples.html, etc. in the below).

Then run the StackMob Web Server below.

Python

The Python Web Server is often a faster way to get running than the old Ruby version below. In your terminal/command prompt, run:

	>  cd /mycomputer/path/to/stackmob-javascript-examples/
	>  python stackmobserver.py

Ruby

Note: You must have already installed the stackmob server before by running:

	>  sudo gem install stackmob

Once installed, start the Ruby Local Runner by opening your terminal/command prompt, and type:

	>  stackmob server	

Explore

Once the web server is running, feel free to start exploring by visiting these pages:

Contributing to the Examples

Have some examples on how to use the StackMob JS SDK in NodeJS? How about CoffeeScript? Email us at [email protected] or simply fork this repo and submit a pull request!

If you'd like to share your repo, contact us at [email protected] and we can also link to it.

About

Examples for the StackMob JS SDK

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 83.7%
  • Python 16.3%