Skip to content

Commit 4d93d35

Browse files
committed
trysmalltalk as a module
1 parent c2b6e5b commit 4d93d35

File tree

114 files changed

+124
-23985
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+124
-23985
lines changed

.gitmodules

-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "googlecharts"]
2-
path = googlecharts
3-
url = https://github.com/tomrake/googlecharts.git
File renamed without changes.

LICENSE-MIT

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
The MIT License (MIT)
2+
3+
Copyright (C) 2011-2014 Nicolas Petton <[email protected]>
4+
Copyright (C) 2011-2014 Amber contributors https://github.com/amber-smalltalk/amber/contributors
5+
Copyright (C) 2011-2014 Amber contributors https://github.com/amber-smalltalk/trysmalltalk/contributors
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in
15+
all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
THE SOFTWARE.

README.md

+12-100
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,17 @@
1-
amber-examples
2-
==============
1+
# TrySmalltalk
32

4-
This project contains various [Amber Smalltalk](http://amber-lang.net/) examples. Amber may run in a web browser or as a command line program.
3+
Tutorial to learn Smalltalk
54

5+
## Getting Started
66

7-
Tools needed
8-
=============
7+
Brought project alive (for example after `git clone`):
98

10-
1. A web browser with reasonably good support for HTML5 canvas.
11-
2. git, on Windows [Git for Windows](http://msysgit.github.com/)
12-
3. [nodejs](http://www.nodejs.org/). This will give you the node package manager `npm` as well.
13-
4. A global install of the [`amber-cli`](http://amber-lang.net/) [npm](http://npmjs.org/) package
14-
5. A global install of the [`bower`](http://bower.io/) client side package manager in order to install the dependencies
15-
6. A global install of the [`grunt-cli`](http://gruntjs.com/) task runner which is used as the command line build system
9+
```sh
10+
npm install
11+
bower install
12+
grunt devel
13+
```
1614

17-
The `amber`, `bower` and `grunt-cli` packages can be installed with the following command (In some cases you have to call `npm` with `sudo npm`):
18-
19-
npm install --global amber-cli bower grunt-cli
20-
21-
or as short form:
22-
23-
npm i -g amber-cli bower grunt-cli
24-
25-
26-
Reference: http://docs.amber-lang.net/js-glossary.html
27-
28-
29-
Setting up amber-examples
30-
==========================
31-
32-
Clone the repository
33-
34-
git clone https://github.com/amber-smalltalk/amber-examples.git
35-
36-
Get dependencies of this project:
37-
38-
cd amber-examples
39-
git submodule update --init --recursive
40-
npm install
41-
bower install
42-
43-
44-
Amber in the browser
45-
==========================
46-
47-
Amber runs in the browser and this includes an IDE. The ``amber`` subdirectory of ``bower_components`` is used.
48-
49-
To have access to this start a small web server:
50-
51-
`amber serve`
52-
53-
and point your browser to
54-
55-
`http://localhost:4000/`
56-
57-
58-
Amber on the command line
59-
====================================================
60-
61-
62-
Build or recompile a command line example (e.g. nodejs) by executing
63-
64-
`grunt`
65-
66-
in the subdirectory.
67-
68-
The subdirectories might contain additional README files which might contain additional information. Here the code in ``amber-dev`` subdirectory of ``node_modules`` and ``bower_components/amber`` is used.
69-
70-
71-
Notes
72-
=====
73-
74-
- Since Amber version 0.10.0 [`grunt`](http://gruntjs.com/) is used as commandline build system.
75-
- For the global and local installation of the `amber-cli` and `bower` command line tools: The recommendation is to install them with the `-g` or `--global` option 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 `npm` install commands without without the `-g` option, and you will find all the commands in the `dir_used/node_modules/.bin` subdirectory. Generally a local installation is not recommended.
76-
77-
78-
Troubleshooting
79-
===============
80-
81-
**SayHello example (Web) does not work**
82-
: check in the web console which files cannot be loaded. Does the folder ``bower_components`` contain subfolders?
83-
Maybe the ``bower install`` command did not run fully? Or there was a problem with ``npm install``?
84-
Sometimes internet connection is slow and you have to re-run these commands.
85-
86-
87-
Other examples
88-
==============
89-
90-
Version 0.12 and earlier
91-
92-
- [ToDo List](https://github.com/hhzl/Amber-ToDo-List)
93-
- [Ludus](https://github.com/bromagosa/Ludus) game framework
94-
- [Graphical libraries](https://github.com/hhzl/Amber-Graphical-Libraries-Demo)
95-
- [Benevoles](https://github.com/vicnet/benevoles) (Manage rewards for volunteers)
96-
97-
Version 0.13
98-
99-
- https://github.com/philippeback/poly/tree/port0132
100-
- https://github.com/philippeback/gdev
101-
102-
Status
103-
======
104-
105-
- Loads fine with [Amber](https://github.com/amber-smalltalk) version 0.12.6
15+
Developing the project (after brought alive):
16+
17+
Start server with `amber serve` and go to `http://localhost:4000/` in your browser and follow the instructions

android/.gitignore

-3
This file was deleted.

android/helloamber/.gitignore

-4
This file was deleted.

android/helloamber/AndroidManifest.xml

-19
This file was deleted.

android/helloamber/HelloAmber.st

-13
This file was deleted.

android/helloamber/Makefile

-56
This file was deleted.

android/helloamber/README.md

-80
This file was deleted.

android/helloamber/ant.properties

-17
This file was deleted.

android/helloamber/assets/index.html

-15
This file was deleted.

android/helloamber/assets/jquery-1.7.2.min.js

-4
This file was deleted.

0 commit comments

Comments
 (0)