This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http from 'http'; | |
import express from 'express'; | |
import cors from 'cors'; | |
import bodyParser from 'body-parser'; | |
import mongoose from 'mongoose'; | |
import falcor from 'falcor'; | |
import falcorExpress from 'falcor-express'; | |
import Router from 'falcor-router'; | |
import routes from './routes.js'; | |
import jwt from 'jsonwebtoken'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_id" : ObjectId("52a6ecec71f290782c2c7118"), | |
"slug" : "booklet_1", | |
"template" : "booklet", | |
"type" : "booklet", | |
"title" : "The Creation of the U.S. Constitution", | |
"description" : null, | |
"footer" : "some booklet footer", | |
"otherMetadata" : "some metadata here", | |
"pages" : [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_id" : ObjectId("52a6ecd371f290782c2c7116"), | |
"slug" : "article_1", | |
"template" : "toc", | |
"type" : "tableOfContent", | |
"title" : "This is first table of content", | |
"description" : null, | |
"otherMetadata" : null, | |
"articles" : [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_id" : ObjectId("52de6f60e02208603ea67dea"), | |
"collection" : "components", | |
"fields" : [ | |
{ | |
"label" : "Title", | |
"field" : "title", | |
"type" : "text", | |
"required" : true | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tu najlepiej to testować: | |
http://54.201.122.206/#/52f4cd0ee02208603ea68e1e/52a21089fa67c9dd6c1e1a4e/52a6f0f671f290782c2c712e/ | |
Gdzie component id = 52a6ece271f290782c2c7117 | |
czyli to jest JSON dla tego componentu ( który ma "hasStar": true, ): | |
--------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi Marek and Greg, | |
I've discuss with Jan the current google forms for quiz implementation. We can stay with current version :-) | |
It's OK but we need implement 4 improvments ( with code snippets from Google Forms ): | |
FIRST OF ALL: | |
CHECK THE SOURCE CODE OF GOOGLE FORMS: | |
view-source:https://docs.google.com/forms/d/1NlPqKWDGfKQWClCWnb0D8pCICw3J3ibjXwf5HEWhRyg/viewform?embedded=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST http://app.junctioned.com/server/message/course/67890/author/98765/student/12345 | |
{message: “what’s shakin?”} | |
{msg: {status: “OK”, id: 121212}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT http://app.junctioned.com/server/read/course/67890/student/12345 | |
{status: “OK”} | |
All messages sent to student 12345 in course 67890 marked as read |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT http://app.junctioned.com/server/read/course/67890/student/12345/author/98765/id/121212 | |
{status: “OK”} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://app.junctioned.com/server/messages/course/67890/student/12345/student/98765 | |
{messages: [{id: 121212, by: “34567”, at: “2014-02-08:18:47:00”, | |
message: “hey, you there?”}, | |
{id: 4, by: ”67890”, at: ”2014-02-08:18:37:42”, | |
message:”what’s hanging?”} | |
] | |
} |
NewerOlder