Permalink
Browse files

Some structure

  • Loading branch information...
indutny committed Nov 1, 2010
1 parent 6f3fec8 commit aeaa5fa6c73a43d214c54c4302c7284da88902be
Showing with 51 additions and 0 deletions.
  1. +22 −0 core/lib/routes/api.js
  2. +1 −0 core/lib/routes/user.js
  3. +14 −0 core/mapchat
  4. +14 −0 package.json
View
@@ -0,0 +1,22 @@
+module.exports = function(app) {
+ // Get conversations list
+ app.get('/api/v1/conversation', function(req, res) {
+
+ });
+
+ // Create new conversation
+ app.put('/api/v1/conversation', function(req, res) {
+ });
+
+ // Get conversation
+ app.get('/api/v1/conversation/:conversation', function(req, res) {
+ });
+
+ // Post message
+ app.post('/api/v1/conversation/:conversation', function(req, res) {
+ });
+
+ // Get changes
+ app.get('/api/v1/conversation/:conversation/_changes', function(req, res) {
+ });
+};
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -0,0 +1,14 @@
+#!/usr/bin/env node
+
+var connect = require('connect'),
+ io = require('socket.io'),
+ route_api = require('./lib/routes/api'),
+ route_user = require('./lib/routes/user');
+
+var server = connect.createServer(
+ connect.bodyDecoder(),
+ connect.format(),
+ connect.compiler(),
+ connect.router(route_user)
+ connect.router(route_api)
+);
View
@@ -0,0 +1,14 @@
+{
+ "name": "mapchat",
+ "description": "Geo-targeted map chat",
+ "version": "0.1.0",
+ "contributors": [
+ { "name": "Fedor Indutny", "email": "fedor.indutny@gmail.com" }
+ ],
+ "homepage": "http://github.com/donnerjack13589/mapchat",
+ "author": "Fedor Indutny <fedor.indutny@gmail.com>",
+ "keywords": ["map", "chat"],
+ "bin" : { "mapchat" : "./core/mapchat" }
+ "engines": { "node": ">= 0.2.4" },
+ "dependencies": [ "connect", "less", "socket.io" ],
+}

0 comments on commit aeaa5fa

Please sign in to comment.