Không có mô tả

Hannes Hirzel 531c75b618 Update bower.json 9 năm trước cách đây
android 9fb9932a0f Add smalltalk to ready() call in .html files 10 năm trước cách đây
googlecharts @ 51e1efdbcb c1c2ea35f4 Update googlecharts 10 năm trước cách đây
hello 74de7398ef Fix hello example: Gruntfile.js/index.html namespace mismatch 10 năm trước cách đây
nodejs 29c51ad2b0 Making nodejs examples build and run. 10 năm trước cách đây
presentation 3ef3e4b3b5 Making presentation load. 10 năm trước cách đây
processing f98f6d813b Making processing load. 10 năm trước cách đây
trysmalltalk 6cc6310626 Fixed reflection lesson slide. Changed #load:forClass: to #install:forClass:category: since #load:forClass: doesn't exist. 10 năm trước cách đây
.gitignore 964fc03f73 Installing bower amber and npm amber-dev 10 năm trước cách đây
.gitmodules c92eaf344b Remove vendor/amber submodule 10 năm trước cách đây
README.md 37d6e21506 Update README.md 9 năm trước cách đây
bower.json 531c75b618 Update bower.json 9 năm trước cách đây
index.html d838583960 Added link to hello/My First Amber Project to index.html 10 năm trước cách đây
package.json 964fc03f73 Installing bower amber and npm amber-dev 10 năm trước cách đây

README.md

amber-examples

Various amber examples

Prerequisites

  1. A web browser with reasonably good support for HTML5 canvas.
  2. nodejs. This will give you the node package manager npm as well.
  3. A global install of the amber npm package
  4. A global install of the bower client side package manager in order to install the dependencies

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

or the same thing, but less typing:

npm i -g amber-cli bower

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

Getting started

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

Afterwards execute the server:

amber serve

and point your browser to

http://localhost:4000/

Rebuilding examples using Grunt.js (development mode)

Since Amber 0.10.0 Grunt.js is used as commandline build system. To use it with the examples it is first necessary to install all dependencies with

  • install grunt-cli globally if not already present: npm install -g grunt-cli
  • cd amber-examples
  • npm install

Afterwards the examples can be built/recompiled by running the following command in the subdirectory of each example:

grunt

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