Нема описа

Hannes Hirzel 7315734c2e Links to Amber web site and repo пре 9 година
android 9fb9932a0f Add smalltalk to ready() call in .html files пре 10 година
googlecharts @ 51e1efdbcb c1c2ea35f4 Update googlecharts пре 10 година
hello 74de7398ef Fix hello example: Gruntfile.js/index.html namespace mismatch пре 10 година
nodejs 29c51ad2b0 Making nodejs examples build and run. пре 10 година
presentation 3ef3e4b3b5 Making presentation load. пре 10 година
processing f98f6d813b Making processing load. пре 10 година
trysmalltalk 6cc6310626 Fixed reflection lesson slide. Changed #load:forClass: to #install:forClass:category: since #load:forClass: doesn't exist. пре 10 година
.gitignore 964fc03f73 Installing bower amber and npm amber-dev пре 10 година
.gitmodules c92eaf344b Remove vendor/amber submodule пре 10 година
README.md 7315734c2e Links to Amber web site and repo пре 9 година
bower.json 531c75b618 Update bower.json пре 9 година
index.html d838583960 Added link to hello/My First Amber Project to index.html пре 10 година
package.json 67c68a5660 Formatting of JSON пре 9 година

README.md

amber-examples

This project contains various Amber Smalltalk examples. Amber may run in a web browser or as a command line program.

Tools needed

  1. A web browser with reasonably good support for HTML5 canvas.
  2. git, on Windows Git for Windows
  3. nodejs. This will give you the node package manager npm as well.
  4. A global install of the amber npm package
  5. A global install of the bower client side package manager in order to install the dependencies
  6. A global install of the grunt task runner which is used as the command line build system

The amber and bower packages can be installed with the following command (In some cases you have to call npm with sudo npm):

npm install --global amber-cli bower grunt-cli

or the same thing, but less typing:

npm i -g amber-cli bower grunt-cli

Reference: http://docs.amber-lang.net/js-glossary.html

Setting up amber-examples

Clone the repository

git clone https://github.com/amber-smalltalk/amber-examples.git

Get dependencies of this project:

cd amber-examples 
git submodule update --init --recursive
npm install
bower install

Amber in the browser

Amber runs in the browser and this includes an IDE.

To have access to this start a small web server:

amber serve

and point your browser to

http://localhost:4000/

Amber on the command line

Build or recompile a command line example (e.g. nodejs) by executing

grunt

in the subdirectory.

The subdirectories might contain additional README files which might contain additional information.

Notes

  • Since Amber version 0.10.0 grunt is used as commandline build system.

Status

  • Loads fine with Amber version 0.12.6