Skip to content

Instantly share code, notes, and snippets.

@adam-singer
Created March 31, 2012 23:43
Show Gist options
  • Save adam-singer/2269763 to your computer and use it in GitHub Desktop.
Save adam-singer/2269763 to your computer and use it in GitHub Desktop.
Quick Dart Starter Pack

Scripts to get a dart starter kit

diff --git a/core/crimson.dart b/core/crimson.dart
index 50c09e1..938c7a8 100644
--- a/core/crimson.dart
+++ b/core/crimson.dart
@@ -6,7 +6,7 @@
#library("crimson:core");
-#import('../../log4dart/LogLib.dart');
+#import('../../log4dart/Lib.dart');
#import("dart:io");
#import("dart:uri");
#import("dart:isolate", prefix:"isolate");
@@ -190,4 +190,4 @@ class CrimsonHttpException extends HttpException {
interface Session extends Map<String, Object> default SessionImpl {
-}
\ No newline at end of file
+}
diff --git a/handlers/handlers.dart b/handlers/handlers.dart
index 4c512c3..af758e3 100644
--- a/handlers/handlers.dart
+++ b/handlers/handlers.dart
@@ -1,10 +1,10 @@
#library("crimson:handlers");
#import("../core/crimson.dart");
-#import('../../log4dart/LogLib.dart');
+#import('../../log4dart/Lib.dart');
#import('../../dart-crypto-lib/src/md5.dart');
#import("dart:io");
#source("endpoints/favicon.dart");
#source("endpoints/staticFile.dart");
#source("filters/cookieSession.dart");
-#source("endpoints/route.dart");
\ No newline at end of file
+#source("endpoints/route.dart");
diff --git a/dartwatchBlogServer.dart b/dartwatchBlogServer.dart
index 30b4c23..706b383 100644
--- a/dartwatchBlogServer.dart
+++ b/dartwatchBlogServer.dart
@@ -1,6 +1,6 @@
#library("dartwatch:blogserver");
-#import("../crimson/core/crimson.dart");
-#import("../crimson/handlers/handlers.dart");
+#import("../CrimsonHttp/core/crimson.dart");
+#import("../CrimsonHttp/handlers/handlers.dart");
#import("../mongo-dart/lib/mongo.dart");
#import("dart:json");
#import("dart:io");
hg clone -r b049363ec7e7 ssh://[email protected]/vadimtsushko/mongo-dart
git clone https://github.com/chrisbu/CrimsonHttp.git
cd CrimsonHttp && git checkout d683b26b46c654ce8fd8c1515b3532f0032fb6b0 && cd ../
git clone https://github.com/Qalqo/log4dart.git
cd log4dart && git checkout aac783c1d1eac58e106716c5243c8d800a315e8e && cd ../
git clone https://github.com/chrisbu/dartwatch-blog-server.git
cd dartwatch-blog-server && git checkout ed24e124f481c4cf5a93f72ed5bc7a5f82df0ad9 && cd ../
git clone https://github.com/prujohn/Buckshot
cd Buckshot && git checkout e17f8976ec6fb376e2f0c54a77ce990077bd4c6e && cd ../
git clone https://code.google.com/p/dart-crypto-lib/
cd dart-crypto-lib && git checkout 864bfaa103fb && cd ../
cd CrimsonHttp/ &&
patch -p1 < ../CrimsonHttpImportPatch.diff
cd ../
cd dartwatch-blog-server/ &&
patch -p1 < ../DartWatchBlogServerPatch.diff
cd ../
mkdir -p db
cd db
mongod -vvv --dbpath .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment