|Hannes Hirzel 18ea7ec267 Merge pull request #83 from hhzl/master||2 years ago|
|android||4 years ago|
|googlecharts @ b5be048959||3 years ago|
|hello||3 years ago|
|nodejs||3 years ago|
|presentation||3 years ago|
|processing||3 years ago|
|snap.svg||3 years ago|
|trysmalltalk||3 years ago|
|.gitignore||3 years ago|
|.gitmodules||3 years ago|
|README.md||2 years ago|
|bower.json||3 years ago|
|index.html||4 years ago|
|package.json||3 years ago|
This project contains various Amber Smalltalk examples. Amber may run in a web browser or as a command line program.
bowerclient side package manager in order to install the dependencies
grunt-clitask runner which is used as the command line build system
grunt-cli packages can be installed with the following command:
npm install --global amber-cli bower grunt-cli
or as short form:
npm i -g amber-cli bower grunt-cli
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 runs in the browser and this includes an IDE. The
amber subdirectory of
bower_components is used.
To have access to this start a small web server:
and point your browser to
Build or recompile a command line example (e.g. nodejs) by executing
in the subdirectory.
The subdirectories might contain additional README files which might contain additional information. Here the code in
amber-dev subdirectory of
bower_components/amber is used.
gruntis used as commandline build system.
bowercommand line tools: The recommendation is to install them with the
--globaloption to be globally accessible. For some uses of these tools it is taken it for granted they are installed globally. So if you use a restricted environment where you cannot install the command line tools globally, try do it locally and some tools might still work. There will be feedback messages if there are problems with this. For a local installation use your home directory or a subdirectory ~/bin of it. Run the
npminstall commands without without the
-goption, and you will find all the commands in the
dir_used/node_modules/.binsubdirectory. Generally a local installation is not recommended.
SayHello example (Web) does not work
: check in the web console which files cannot be loaded. Does the folder
bower_components contain subfolders?
Maybe the ``bower install`` command did not run fully? Or there was a problem with ``npm install``? Sometimes internet connection is slow and you have to re-run these commands.
Version 0.12 and earlier