g2.4
This commit is contained in:
1 parent
e49ce13dc7
commit
322c62ec80
7 files changed
+387
-23
No files matched your search
@@ -0,0 +1,82 @@
|
||||
async function createTemp() {
|
||||
const couchDB = new CouchDB();
|
||||
await couchDB.set("users", {
|
||||
"turtle": {
|
||||
"password": "1234",
|
||||
"level": 1,
|
||||
"avatar": null,
|
||||
"abilities": [],
|
||||
"role": "student",
|
||||
"courses": [
|
||||
"weiche_ware",
|
||||
"bucket"
|
||||
]
|
||||
},
|
||||
"dumble-door": {
|
||||
"password": "bla",
|
||||
"level": 10,
|
||||
"avatar": "https://static.turtle-coding-gbr.de/profile-pic.png",
|
||||
"abilities": [],
|
||||
"role": "professor",
|
||||
"courses": [
|
||||
"weiche_ware"
|
||||
]
|
||||
},
|
||||
"narrator": {
|
||||
"password": "stanley",
|
||||
"level": 100,
|
||||
"avatar": "https://static.turtle-coding-gbr.de/st",
|
||||
"abilities": [],
|
||||
"role": "professor",
|
||||
"courses": [
|
||||
"bucket"
|
||||
]
|
||||
}
|
||||
});
|
||||
await couchDB.set("course:bucket", {
|
||||
"title": "Bucket",
|
||||
"description": "The end is never the end is never the end is never",
|
||||
"owner": "narrator",
|
||||
"questions": [
|
||||
{
|
||||
"title": "What is comedic timing?",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"title": "How does it work?",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"title": "How long should it last?",
|
||||
"type": "scala"
|
||||
},
|
||||
{
|
||||
"title": "How can it be used to effectively silence your political enemies?",
|
||||
"type": "emoji"
|
||||
}
|
||||
],
|
||||
"result": [
|
||||
["YES", "YES", 5, 2],
|
||||
["YES", "YES", 1, 3]
|
||||
]
|
||||
});
|
||||
await couchDB.set("course:weiche_ware", {
|
||||
"title": "Weiche Ware",
|
||||
"description": "blabering",
|
||||
"owner": "dumble-door",
|
||||
"questions": [
|
||||
{
|
||||
"title": "Wie fanden Sie die Vorlesung?",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"title": "Finden Sie, dass man Zauberei an lebendigen Schülern praktizieren sollte?",
|
||||
"type": "scala"
|
||||
}
|
||||
],
|
||||
"result": [
|
||||
["Gut, aber ...", 5],
|
||||
["Schlecht", 1]
|
||||
]
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user