Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Some structure

  • Loading branch information...
commit aeaa5fa6c73a43d214c54c4302c7284da88902be 1 parent 6f3fec8
Fedor Indutny authored November 01, 2010
22  core/lib/routes/api.js
... ...
@@ -0,0 +1,22 @@
  1
+module.exports = function(app) {
  2
+  // Get conversations list
  3
+  app.get('/api/v1/conversation', function(req, res) {
  4
+    
  5
+  });
  6
+  
  7
+  // Create new conversation
  8
+  app.put('/api/v1/conversation', function(req, res) {
  9
+  });
  10
+  
  11
+  // Get conversation
  12
+  app.get('/api/v1/conversation/:conversation', function(req, res) {
  13
+  });
  14
+  
  15
+  // Post message
  16
+  app.post('/api/v1/conversation/:conversation', function(req, res) {
  17
+  });
  18
+  
  19
+  // Get changes
  20
+  app.get('/api/v1/conversation/:conversation/_changes', function(req, res) {
  21
+  });
  22
+};
1  core/lib/routes/user.js
... ...
@@ -0,0 +1 @@
  1
+module.exports = function(app) {
  // Create user
  app.put('/api/v1/user', function(req, res, next) {
  });
  
  // Login
  app.post('/api/v1/user/:name', function(req, res, next) {
    
  });
};
14  core/mapchat
... ...
@@ -0,0 +1,14 @@
  1
+#!/usr/bin/env node
  2
+
  3
+var connect = require('connect'),
  4
+    io = require('socket.io'),
  5
+    route_api = require('./lib/routes/api'),
  6
+    route_user = require('./lib/routes/user');
  7
+    
  8
+var server = connect.createServer(
  9
+  connect.bodyDecoder(),
  10
+  connect.format(),
  11
+  connect.compiler(),
  12
+  connect.router(route_user)
  13
+  connect.router(route_api)
  14
+);
14  package.json
... ...
@@ -0,0 +1,14 @@
  1
+{
  2
+  "name": "mapchat",
  3
+  "description": "Geo-targeted map chat",
  4
+  "version": "0.1.0",
  5
+  "contributors": [ 
  6
+    { "name": "Fedor Indutny", "email": "fedor.indutny@gmail.com" }
  7
+  ],
  8
+  "homepage": "http://github.com/donnerjack13589/mapchat",
  9
+  "author": "Fedor Indutny <fedor.indutny@gmail.com>",
  10
+  "keywords": ["map", "chat"],
  11
+  "bin" : { "mapchat" : "./core/mapchat" }
  12
+  "engines": { "node": ">= 0.2.4" },
  13
+  "dependencies": [ "connect", "less", "socket.io" ],
  14
+}

0 notes on commit aeaa5fa

Please sign in to comment.
Something went wrong with that request. Please try again.