HTML
SASS
AngularJS
ThreeJS
NodeJS
EXPRESS
MongoDB
POST /signin { email:..., password: ... }
HTTP 200 { token: ... }
GET /collection HTTP HEADER Authorization: Bearer token...
HTTP 200 { collection: ... }
// authenticate user
Collection.update( { userId: payload.userId }, collection, { upsert: true }, function ( err ) {
// return http response
} );
// authenticate user
Collection.findOne( { userId: payload.userId }, function ( err, collection ) {
// return http json response
} );
READ
CREATE UPDATE DELETE