Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Server side components explained

Garbash edited this page Jul 24, 2013 · 4 revisions
  • reference specific files
  • diagram

I order to illustrate the workflow we are going to follow an example of a request going end to end.

So we will look at how a resource is created:

Client side:

A user, from the dialog box just submitted a node.

The request is passed from the angular controller dialogue "createUserDialogueBox" to the angular service "Resource" via an http request through the basic routing on app.js expressResourceNew which travels through to the resource controller

two ways to register a web service:

  1. Express resource way (app.resource...) (url to express resource)
  2. Plain express (app.get, app.post etc') (express docs)

by magic to resourceController which passes the request to controller._coffee who handles these kind of generic requests such as "create". The controller._coffee" makes sure that the user is logged in by magic and than goes to the resourceDAO which through it's own "create" function passes the order to the user modal to retrieve the user and the resource modal by magic to the db which creates it through some weird implementation of juggling db and returns everything back as a callback.

Node-Neo4j

http://coffeedoc.info/github/thingdom/node-neo4j/master/