Skip to content

Commit

Permalink
Avaluacions
Browse files Browse the repository at this point in the history
  • Loading branch information
juantoman committed Dec 15, 2017
1 parent 7a3adf1 commit eda1a5d
Show file tree
Hide file tree
Showing 29 changed files with 57 additions and 1 deletion.
20 changes: 20 additions & 0 deletions backup_mongo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
First you need to spin up meteor.

Then if you run

meteor mongo

you will get an output something like this:

MongoDB shell version: 2.2.1
connecting to: 127.0.0.1:3001/meteor

Meteor db host is at 127.0.0.1 with a port of 3001.

Exit the mongo shell and use mongodump from your terminal.

mongodump -h 127.0.0.1 --port 3001 -d meteor

Restore your database to mlab:

mongorestore -h ds113445.mlab.com:13445 -d myclassgame -u <user> -p <password> dump/meteor
5 changes: 5 additions & 0 deletions client/templates/settingsPage/settingsPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<li role="presentation"><a href="#badges" aria-controls="badges" role="tab" data-toggle="tab">Insignias</a></li>
<li role="presentation"><a href="#store" aria-controls="store" role="tab" data-toggle="tab">Tienda</a></li>
<li role="presentation"><a href="#convictions" aria-controls="convictions" role="tab" data-toggle="tab">Castigos</a></li>
<li role="presentation"><a href="#timing" aria-controls="timing" role="tab" data-toggle="tab">Temporización</a></li>
</ul>

<!-- Tab panes -->
Expand All @@ -37,6 +38,10 @@ <h2 class="text-center bg-info">Tienda</h2>
<h2 class="text-center bg-info">Castigos</h2>
{{> convictionsList}}
</div>
<div role="tabpanel" class="tab-pane" id="timing">
<h2 class="text-center bg-info">Temporización</h2>
{{> convictionsList}}
</div>

</div>
<br>
Expand Down
9 changes: 9 additions & 0 deletions client/templates/students/studentsMainPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
</div>
</form>
<br>
<div class="text-center">
<label for="evaluacion">Evaluación</label>
<select id="evaluacion" name="evaluacion">
<option value="1" selected="selected">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</div>
<br>
{{#if teacher}}
<p class="text-center">
<button id="students" type="button" class="btn btn-sog {{btnSelected "students"}} btn-sm">Estudiantes</button>
Expand Down
6 changes: 5 additions & 1 deletion client/templates/students/studentsMainPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,9 @@ Template.studentsMainPage.events({
'change #className': function(event) {
event.preventDefault();
Meteor.call('classUpdate',Session.get('classId'), event.currentTarget.value);
}
},
'change select': function(event) {
event.preventDefault();
alert($(this).find(":selected").val());
},
});
Binary file added dump/meteor/badges.bson
Binary file not shown.
1 change: 1 addition & 0 deletions dump/meteor/badges.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"options":{},"indexes":[{"v":1,"key":{"_id":1},"name":"_id_","ns":"meteor.badges"}]}
Binary file added dump/meteor/behaviours.bson
Binary file not shown.
1 change: 1 addition & 0 deletions dump/meteor/behaviours.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"options":{},"indexes":[{"v":1,"key":{"_id":1},"name":"_id_","ns":"meteor.behaviours"}]}
Binary file added dump/meteor/behavioursLog.bson
Binary file not shown.
1 change: 1 addition & 0 deletions dump/meteor/behavioursLog.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"options":{},"indexes":[{"v":1,"key":{"_id":1},"name":"_id_","ns":"meteor.behavioursLog"}]}
Binary file added dump/meteor/classes.bson
Binary file not shown.
1 change: 1 addition & 0 deletions dump/meteor/classes.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"options":{},"indexes":[{"v":1,"key":{"_id":1},"name":"_id_","ns":"meteor.classes"}]}
Binary file added dump/meteor/convictions.bson
Binary file not shown.
1 change: 1 addition & 0 deletions dump/meteor/convictions.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"options":{},"indexes":[{"v":1,"key":{"_id":1},"name":"_id_","ns":"meteor.convictions"}]}
Binary file added dump/meteor/groups.bson
Binary file not shown.
1 change: 1 addition & 0 deletions dump/meteor/groups.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"options":{},"indexes":[{"v":1,"key":{"_id":1},"name":"_id_","ns":"meteor.groups"}]}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"options":{},"indexes":[{"v":1,"key":{"_id":1},"name":"_id_","ns":"meteor.meteor_accounts_loginServiceConfiguration"},{"v":1,"unique":true,"key":{"service":1},"name":"service_1","ns":"meteor.meteor_accounts_loginServiceConfiguration"}]}
Empty file.
1 change: 1 addition & 0 deletions dump/meteor/meteor_oauth_pendingCredentials.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"options":{},"indexes":[{"v":1,"key":{"_id":1},"name":"_id_","ns":"meteor.meteor_oauth_pendingCredentials"},{"v":1,"unique":true,"key":{"key":1},"name":"key_1","ns":"meteor.meteor_oauth_pendingCredentials"},{"v":1,"key":{"credentialSecret":1},"name":"credentialSecret_1","ns":"meteor.meteor_oauth_pendingCredentials"},{"v":1,"key":{"createdAt":1},"name":"createdAt_1","ns":"meteor.meteor_oauth_pendingCredentials"}]}
Binary file added dump/meteor/randomEvents.bson
Binary file not shown.
1 change: 1 addition & 0 deletions dump/meteor/randomEvents.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"options":{},"indexes":[{"v":1,"key":{"_id":1},"name":"_id_","ns":"meteor.randomEvents"}]}
Binary file added dump/meteor/store.bson
Binary file not shown.
1 change: 1 addition & 0 deletions dump/meteor/store.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"options":{},"indexes":[{"v":1,"key":{"_id":1},"name":"_id_","ns":"meteor.store"}]}
Binary file added dump/meteor/students.bson
Binary file not shown.
1 change: 1 addition & 0 deletions dump/meteor/students.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"options":{},"indexes":[{"v":1,"key":{"_id":1},"name":"_id_","ns":"meteor.students"}]}
Binary file added dump/meteor/users.bson
Binary file not shown.
1 change: 1 addition & 0 deletions dump/meteor/users.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"options":{},"indexes":[{"v":1,"key":{"_id":1},"name":"_id_","ns":"meteor.users"},{"v":1,"unique":true,"key":{"username":1},"name":"username_1","ns":"meteor.users","sparse":1},{"v":1,"unique":true,"key":{"emails.address":1},"name":"emails.address_1","ns":"meteor.users","sparse":1},{"v":1,"unique":true,"key":{"services.resume.loginTokens.hashedToken":1},"name":"services.resume.loginTokens.hashedToken_1","ns":"meteor.users","sparse":1},{"v":1,"unique":true,"key":{"services.resume.loginTokens.token":1},"name":"services.resume.loginTokens.token_1","ns":"meteor.users","sparse":1},{"v":1,"key":{"services.resume.haveLoginTokensToDelete":1},"name":"services.resume.haveLoginTokensToDelete_1","ns":"meteor.users","sparse":1},{"v":1,"key":{"services.resume.loginTokens.when":1},"name":"services.resume.loginTokens.when_1","ns":"meteor.users","sparse":1},{"v":1,"unique":true,"key":{"services.email.verificationTokens.token":1},"name":"services.email.verificationTokens.token_1","ns":"meteor.users","sparse":1},{"v":1,"unique":true,"key":{"services.password.reset.token":1},"name":"services.password.reset.token_1","ns":"meteor.users","sparse":1},{"v":1,"unique":true,"key":{"services.google.id":1},"name":"services.google.id_1","ns":"meteor.users","sparse":1}]}
6 changes: 6 additions & 0 deletions install_mongo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
https://docs.mongodb.com/master/tutorial/install-mongodb-on-ubuntu/

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
echo "deb [ arch=amd64 ] http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/testing multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
sudo apt-get update
sudo apt-get install -y mongodb-org

0 comments on commit eda1a5d

Please sign in to comment.