Browse Source

Merge pull request #15 from mkroehnert/update

Update vendor/amber and start.sh, enhance README, add index.html
Manfred Kröhnert 11 years ago
parent
commit
1f7a70d8dd
6 changed files with 36 additions and 5 deletions
  1. 18 1
      README.md
  2. 14 0
      index.html
  3. 1 1
      processing/index.html
  4. 1 1
      start.bat
  5. 1 1
      start.sh
  6. 1 1
      vendor/amber

+ 18 - 1
README.md

@@ -1,4 +1,21 @@
 amber-examples
 ==============
 
-Various amber examples
+Various amber examples
+
+Getting started
+===============
+
+To get started you must first initialize the Git submodules these projects depend on:
+
+git submodule update --init --recursive
+
+Afterwards execute one of the start scripts:
+
+start.sh
+start.bat
+
+and point your browser to
+
+http://localhost:4000/
+

+ 14 - 0
index.html

@@ -0,0 +1,14 @@
+<html>
+<head>
+	<title>Amber Examples</title>
+</head>
+<body>
+	<ul>
+		<li><a href="./googlecharts/index.html">Google Charts Example</a></li>
+		<li><a href="./presentation/index.html">Amber Presentations</a></li>
+		<li><a href="./processing/index.html">Amber Example using Processing.js</a></li>
+		<li><a href="./trysmalltalk/index.html">Prof Stef Tutorial</a></li>
+		<li><a href="./twitterwall/index.html">Twitterwall Example</a></li>
+	</ul>
+</body>
+</html>

+ 1 - 1
processing/index.html

@@ -12,7 +12,7 @@
 	<script type="text/javascript" src="processing-1.4.1.js"></script>
   </head> 
   <body> 
-	A Clock made with <a href="http://processingjs.org">Processing.js</a> and Amber
+	A Clock made with <a href="http://processingjs.org">Processing.js</a> and <a href"http://amber-lang.net/">Amber</a>
 	<p>Examine the <button onClick="smalltalk.Browser._openOn_(smalltalk.ProcessingClock)"> ProcessingClock class</button></p> 
 	<p><canvas id="canvas1" width="200" height="200"></canvas></p>
 	<script id="script1" type="text/javascript">

+ 1 - 1
start.bat

@@ -1 +1 @@
-node vendor/amber/server/server.js %*
+node vendor/amber/cli/js/amber-cli.js serve %*

+ 1 - 1
start.sh

@@ -1,3 +1,3 @@
 #! /bin/sh
 
-node vendor/amber/server/server.js $@
+node vendor/amber/cli/js/amber-cli.js serve $@

+ 1 - 1
vendor/amber

@@ -1 +1 @@
-Subproject commit d943be35e9c2247db079f865f78328d7836e45c8
+Subproject commit 92fbe52b4cd047fa9d51890e6df9916a38e16e09