ピグライフ と node.js
- 8. HTTP HTTP
HTTP
TCP TCP
mongos mongos mongos
- 12. express websocket-server Cluster
Controllers
Model (Services)
mongoDB HTTP Client
driver (External Services)
- 13. A B C
WebSocket WebSocket
TCP TCP
- 16. col.find({ first: ‘value’, second: 20 });
col.update(
{_id:‘test’},
{$set: { ‘testgroup.testkey’: 100 },
$inc: { counter: 1 }
);
- 25. recipe: {
! _id: {
! ! label: ' ',
! type : 'text',
! class: 'required',
! minlength: 4,
! maxlength: 64
! },
! name: {
! ! label: ' ',
! ! type : 'text',
! ! class: 'required',
! ! maxlength: 32
! },
! type: {
! ! label: ' ',
! ! type: 'radio',
! ! labels: [' ',' ',' ',' '],
! ! values: ['cooking','sewing','craft','mix']
! },
! material: {
! ! label: ' ',
! ! type: 'multiple',
! ! fields: {
! ! ! title: {
! ! ! ! label: ' ',
! ! ! ! type: 'text',
! ! ! ! autocomplete: 'item',
! ! ! ! autocompleteWith: ['name'],
! ! ! ! class: 'required',
! ! ! ! maxlength: 64
! ! ! },
! ! ! name: {
! ! ! ! label: ' ',
! ! ! ! type: 'text',
! ! ! ! disabled: true
! ! ! },
! ! ! quantity: {
! ! ! ! label: ' ',