Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

initial commit

  • Loading branch information...
commit aee628ad43977cbf9b801bef2493d3f249ef567d 0 parents
@jamuhl jamuhl authored
14 .gitignore
@@ -0,0 +1,14 @@
+$ cat .gitignore
+
+# Can ignore specific files
+#.DS_Store
+
+# Use wildcards as well
+*~
+#*.swp
+
+# Can also ignore all directories and files in a directory.
+Domain/node_modules
+Domain/node_modules/**/*
+Host/node_modules
+Host/node_modules/**/*
58 Cakefile
@@ -0,0 +1,58 @@
+#-----------------------------------------------------------------
+# BUILD WITH CAKE
+#
+# source: https://github.com/jashkenas/coffee-script/wiki/%5BHowTo%5D-Compiling-and-Setting-Up-Build-Tools
+
+fs = require 'fs'
+{exec} = require 'child_process'
+
+
+task 'module', 'loads needed node.js modules', ->
+
+ out = (err, stdout, stderr) ->
+ throw err if err
+ console.log stdout + stderr
+
+ exec 'npm install express', out
+ exec 'npm install jade', out
+ exec 'npm install stylus', out
+ exec 'npm install coffee-script', out
+ exec 'npm install socket.io', out
+ exec 'npm install redis', out
+ exec 'npm install hiredis', out
+ exec 'npm install async', out
+
+
+
+
+
+# todo:
+
+appFiles = [
+ # omit src/ and .coffee to make the below lines a little shorter
+ 'content/scripts/statusbar'
+ 'content/scripts/command/quickMacro'
+ 'content/scripts/command/selectionTools/general'
+]
+
+task 'build', 'Build single application file from source files', ->
+ appContents = new Array remaining = appFiles.length
+ for file, index in appFiles then do (file, index) ->
+ fs.readFile "src/#{file}.coffee", 'utf8', (err, fileContents) ->
+ throw err if err
+ appContents[index] = fileContents
+ process() if --remaining is 0
+ process = ->
+ fs.writeFile 'lib/app.coffee', appContents.join('\n\n'), 'utf8', (err) ->
+ throw err if err
+ exec 'coffee --compile lib/app.coffee', (err, stdout, stderr) ->
+ throw err if err
+ console.log stdout + stderr
+ fs.unlink 'lib/app.coffee', (err) ->
+ throw err if err
+ console.log 'Done.'
+
+task 'minify', 'Minify the resulting application file after build', ->
+ exec 'java -jar "/home/stan/public/compiler.jar" --js lib/app.js --js_output_file lib/app.production.js', (err, stdout, stderr) ->
+ throw err if err
+ console.log stdout + stderr
9 README.markdown
@@ -0,0 +1,9 @@
+## Introduction
+
+The project goal is to provide an eventstore in node.js.
+
+The project is inspired by Jonathan Olivier's [EventStore](https://github.com/joliver/EventStore) for .net.
+
+NOTHING TO SHOW RIGHT NOW.
+
+
15 package.json
@@ -0,0 +1,15 @@
+{
+ "name": "SimpleCQRS.Host"
+ , "version": "0.0.1"
+ , "private": true
+ , "dependencies": {
+ "express": "2.4.6"
+ , "stylus": ">= 0.0.1"
+ , "jade": ">= 0.0.1"
+ , "socket.io": ">= 0.0.1"
+ , "redis": ">= 0.0.1"
+ , "hiredis": ">= 0.0.1"
+ , "coffee-script": ">= 1.0.0"
+ , "async" : ">= 0.0.1"
+ }
+}
36 todo.markdown
@@ -0,0 +1,36 @@
+Inspiration:
+
+https://github.com/joliver/EventStore/blob/master/doc/EventStore.Example/MainProgram.cs
+
+### todo:
+
+v0.0.1
+
+1. create a stream and commit it by aggregateId
+
+ EventStream (load and save)
+
+ - add(event)
+ - commit()
+
+ - collection for committedEvents and uncommittedEvents
+
+ Event = streamId (=aggregateId), streamRevision, commitId, commitSequence, commitStamp, headers, Dispatched, payload
+
+1. load stream -> (streamId, minRevision, maxRevision)
+
+
+v0.0.2
+
+1. dispatch commit to publisher
+1. take a snapshot
+1. load stream from latest snapshot -> (snapshot, maxRevision)
+1. compress json
+1. pipelinehook for _select commit_, _precommit_, _postcommit_
+
+
+v.0.0.3
+
+1. encrypt json
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.