From 83654fb86ad7d8ccc1dbae69b8c2fd0873c9ef19 Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Sun, 12 Jul 2015 22:51:06 -0700 Subject: [PATCH] finish adding the nodeschool challenges --- seed/challenges/advanced-bonfires.json | 2 +- seed/challenges/angularjs.json | 2 +- seed/challenges/automated-testing.json | 48 ------------------- seed/challenges/basejumps.json | 6 +-- seed/challenges/basic-ziplines.json | 10 ++-- seed/challenges/git.json | 6 +-- seed/challenges/intermediate-ziplines.json | 10 ++-- seed/challenges/mongodb.json | 7 ++- seed/challenges/nodejs-and-expressjs.json | 14 ++---- .../object-oriented-programming.json | 10 ++-- server/boot/challenge.js | 3 +- 11 files changed, 27 insertions(+), 91 deletions(-) delete mode 100644 seed/challenges/automated-testing.json diff --git a/seed/challenges/advanced-bonfires.json b/seed/challenges/advanced-bonfires.json index b5adac4dfa..f729bde4e2 100644 --- a/seed/challenges/advanced-bonfires.json +++ b/seed/challenges/advanced-bonfires.json @@ -1,6 +1,6 @@ { "name": "Advanced Algorithm Scripting", - "order": 0.012, + "order": 0.011, "challenges": [ { "id": "aff0395860f5d3034dc0bfc9", diff --git a/seed/challenges/angularjs.json b/seed/challenges/angularjs.json index 0e1b5acc32..48207fb41f 100644 --- a/seed/challenges/angularjs.json +++ b/seed/challenges/angularjs.json @@ -1,6 +1,6 @@ { "name": "AngularJS", - "order": 0.016, + "order": 0.015, "challenges": [ { "id": "bd7154d8c441eddfaeb5bdef", diff --git a/seed/challenges/automated-testing.json b/seed/challenges/automated-testing.json deleted file mode 100644 index cd7e9fb1ea..0000000000 --- a/seed/challenges/automated-testing.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "Automated Testing", - "order" : 0.011, - "challenges": [ - { - "id": "bd7253d8c341eddeaeb5bd0f", - "name": "Waypoint: Write Automated Tests for Safer Code", - "dashedName": "waypoint-write-automated-tests-for-safer-code", - "difficulty": 0.01, - "challengeSeed": ["126433450"], - "description": [ - "We'll build this Waypoint on Cloud 9, a powerful online code editor with a full Ubuntu Linux workspace, all running in the cloud.", - "If you don't already have Cloud 9 account, create one now at http://c9.io.", - "Open up http://c9.io and sign in to your account.", - "Click on Create New Workspace at the top right of the c9.io page, then click on the \"Create a new workspace\" popup that appears below it the button after you click on it.", - "Give your workspace a name.", - "Choose Node.js in the selection area below the name field.", - "Click the Create button.", - "Wait for the workspace to finish processing and select it on the left sidebar, below the Create New Workspace button.", - "Click the \"Start Editing\" button.", - "In the lower right hand corner you should see a terminal window. In this window use the following commands. You don't need to know what these mean at this point.", - "Install test-anything with this command: npm install -g test-anything", - "Now start the tutorial by running test-anything.", - "Note that you can resize the c9.io's windows by dragging their borders.", - "Make sure that you are always in your project's \"workspace\" directory. You can always navigate back to this directory by running this command: cd ~/workspace.", - "You can view this Node School module's source code on GitHub at https://github.com/finnp/test-anything.", - "Complete \"Log it out\"", - "Complete \"Tell me what is Wrong\"", - "Complete \"Tape it Together\"", - "Complete \"Call me Maybe\"", - "Complete \"To Err is Human, to Purr Feline\"", - "Once you've completed these steps, move on to our next challenge." - ], - "challengeType": 2, - "tests": [], - "nameCn": "", - "descriptionCn": [], - "nameFr": "", - "descriptionFr": [], - "nameRu": "", - "descriptionRu": [], - "nameEs": "", - "descriptionEs": [], - "namePt": "", - "descriptionPt": [] - } - ] -} diff --git a/seed/challenges/basejumps.json b/seed/challenges/basejumps.json index 69bd285081..fcd35dce54 100644 --- a/seed/challenges/basejumps.json +++ b/seed/challenges/basejumps.json @@ -1,6 +1,6 @@ { "name": "Full Stack JavaScript Projects", - "order": 0.018, + "order": 0.017, "challenges": [ { "id": "bd7158d8c443eddfaeb5bcef", @@ -17,9 +17,7 @@ "Click on Create New Workspace at the top right of the c9.io page, then click on the \"Create a new workspace\" popup that appears below it the button after you click on it.", "Give your workspace a name.", "Choose Node.js in the selection area below the name field.", - "Click the Create button.", - "Wait for the workspace to finish processing and select it on the left sidebar, below the Create New Workspace button.", - "Click the \"Start Editing\" button.", + "Click the Create button. Then click into your new workspace.", "In the lower right hand corner you should see a terminal window. In this window use the following commands. You don't need to know what these mean at this point.", "Never run this command on your local machine. But in your Cloud 9 terminal window, run: rm -rf * && echo \"export NODE_PATH=$NODE_PATH:/home/ubuntu/.nvm/v0.10.35/lib/node_modules\" >> ~/.bashrc && source ~/.bashrc && npm install -g yo grunt grunt-cli generator-angular-fullstack && yo angular-fullstack", "Yeoman will prompt you to answer some questions. Answer them like this:", diff --git a/seed/challenges/basic-ziplines.json b/seed/challenges/basic-ziplines.json index d8d1ebab3e..6fd0eb5572 100644 --- a/seed/challenges/basic-ziplines.json +++ b/seed/challenges/basic-ziplines.json @@ -44,7 +44,7 @@ "difficulty": 1.01, "challengeSeed": ["126415122"], "description": [ - "Objective: Build a CodePen.io that successfully reverse-engineers this: http://codepen.io/ThiagoFerreir4/full/eNMxEp.", + "Objective: Build a CodePen.io app that successfully reverse-engineers this: http://codepen.io/ThiagoFerreir4/full/eNMxEp.", "Rule #1: Don't look at the example project's code on CodePen. Figure it out for yourself.", "Rule #2: You may use whichever libraries or APIs you need.", "Rule #3: Reverse engineer the example project's functionality, and also feel free to personalize it.", @@ -79,7 +79,7 @@ "difficulty": 1.02, "challengeSeed": ["126415122"], "description": [ - "Objective: Build a CodePen.io that successfully reverse-engineers this: http://codepen.io/AdventureBear/full/vEoVMw.", + "Objective: Build a CodePen.io app that successfully reverse-engineers this: http://codepen.io/AdventureBear/full/vEoVMw.", "Rule #1: Don't look at the example project's code on CodePen. Figure it out for yourself.", "Rule #2: You may use whichever libraries or APIs you need.", "Rule #3: Reverse engineer the example project's functionality, and also feel free to personalize it.", @@ -111,7 +111,7 @@ "difficulty": 1.03, "challengeSeed": ["126415127"], "description": [ - "Objective: Build a CodePen.io that successfully reverse-engineers this: http://codepen.io/AdventureBear/full/yNBJRj.", + "Objective: Build a CodePen.io app that successfully reverse-engineers this: http://codepen.io/AdventureBear/full/yNBJRj.", "Rule #1: Don't look at the example project's code on CodePen. Figure it out for yourself.", "Rule #2: You may use whichever libraries or APIs you need.", "Rule #3: Reverse engineer the example project's functionality, and also feel free to personalize it.", @@ -144,7 +144,7 @@ "difficulty": 1.04, "challengeSeed": ["126411567"], "description": [ - "Objective: Build a CodePen.io that successfully reverse-engineers this: http://codepen.io/GeoffStorbeck/full/RPbGxZ/.", + "Objective: Build a CodePen.io app that successfully reverse-engineers this: http://codepen.io/GeoffStorbeck/full/RPbGxZ/.", "Rule #1: Don't look at the example project's code on CodePen. Figure it out for yourself.", "Rule #2: You may use whichever libraries or APIs you need.", "Rule #3: Reverse engineer the example project's functionality, and also feel free to personalize it.", @@ -176,7 +176,7 @@ "difficulty": 1.05, "challengeSeed": ["126411564"], "description": [ - "Objective: Build a CodePen.io that successfully reverse-engineers this: http://codepen.io/GeoffStorbeck/full/GJKRxZ.", + "Objective: Build a CodePen.io app that successfully reverse-engineers this: http://codepen.io/GeoffStorbeck/full/GJKRxZ.", "Rule #1: Don't look at the example project's code on CodePen. Figure it out for yourself.", "Rule #2: You may use whichever libraries or APIs you need.", "Rule #3: Reverse engineer the example project's functionality, and also feel free to personalize it.", diff --git a/seed/challenges/git.json b/seed/challenges/git.json index af337af655..201c34ede7 100644 --- a/seed/challenges/git.json +++ b/seed/challenges/git.json @@ -1,6 +1,6 @@ { "name": "Git", - "order" : 0.013, + "order" : 0.012, "challenges": [ { "id": "bd7353d8c341eddeaeb5bd0f", @@ -15,9 +15,7 @@ "Click on Create New Workspace at the top right of the c9.io page, then click on the \"Create a new workspace\" popup that appears below it the button after you click on it.", "Give your workspace a name.", "Choose Node.js in the selection area below the name field.", - "Click the Create button.", - "Wait for the workspace to finish processing and select it on the left sidebar, below the Create New Workspace button.", - "Click the \"Start Editing\" button.", + "Click the Create button. Then click into your new workspace.", "In the lower right hand corner you should see a terminal window. In this window use the following commands. You don't need to know what these mean at this point.", "Install how-to-npm with this command: npm install -g git-it", "Now start the tutorial by running git-it.", diff --git a/seed/challenges/intermediate-ziplines.json b/seed/challenges/intermediate-ziplines.json index 4859ac93a6..e7d3e5e38d 100644 --- a/seed/challenges/intermediate-ziplines.json +++ b/seed/challenges/intermediate-ziplines.json @@ -1,6 +1,6 @@ { "name": "Intermediate Front End Development Projects", - "order": 0.017, + "order": 0.016, "challenges": [ { "id": "bd7158d8c442eddfaeb5bd18", @@ -9,7 +9,7 @@ "difficulty": 1.02, "challengeSeed": ["126415129"], "description": [ - "Objective: Build a CodePen.io that successfully reverse-engineers this: http://codepen.io/GeoffStorbeck/full/Wveezv.", + "Objective: Build a CodePen.io app that successfully reverse-engineers this: http://codepen.io/GeoffStorbeck/full/Wveezv.", "Rule #1: Don't look at the example project's code on CodePen. Figure it out for yourself.", "Rule #2: You may use whichever libraries or APIs you need.", "Rule #3: Reverse engineer the example project's functionality, and also feel free to personalize it.", @@ -43,7 +43,7 @@ "difficulty": 1.03, "challengeSeed": ["126415131"], "description": [ - "Objective: Build a CodePen.io that successfully reverse-engineers this: http://codepen.io/GeoffStorbeck/full/MwgQea.", + "Objective: Build a CodePen.io app that successfully reverse-engineers this: http://codepen.io/GeoffStorbeck/full/MwgQea.", "Rule #1: Don't look at the example project's code on CodePen. Figure it out for yourself.", "Rule #2: You may use whichever libraries or APIs you need.", "Rule #3: Reverse engineer the example project's functionality, and also feel free to personalize it.", @@ -76,7 +76,7 @@ "difficulty": 1.05, "challengeSeed": ["126411565"], "description": [ - "Objective: Build a CodePen.io that successfully reverse-engineers this: http://codepen.io/GeoffStorbeck/full/zxgaqw.", + "Objective: Build a CodePen.io app that successfully reverse-engineers this: http://codepen.io/GeoffStorbeck/full/zxgaqw.", "Rule #1: Don't look at the example project's code on CodePen. Figure it out for yourself.", "Rule #2: You may use whichever libraries or APIs you need.", "Rule #3: Reverse engineer the example project's functionality, and also feel free to personalize it.", @@ -108,7 +108,7 @@ "difficulty": 1.06, "challengeSeed": ["126415123"], "description": [ - "Objective: Build a CodePen.io that successfully reverse-engineers this: http://codepen.io/alex-dixon/full/JogOpQ/.", + "Objective: Build a CodePen.io app that successfully reverse-engineers this: http://codepen.io/alex-dixon/full/JogOpQ/.", "Rule #1: Don't look at the example project's code on CodePen. Figure it out for yourself.", "Rule #2: You may use whichever libraries or APIs you need.", "Rule #3: Reverse engineer the example project's functionality, and also feel free to personalize it.", diff --git a/seed/challenges/mongodb.json b/seed/challenges/mongodb.json index 19592bf86a..cca5ee792c 100644 --- a/seed/challenges/mongodb.json +++ b/seed/challenges/mongodb.json @@ -1,6 +1,6 @@ { "name": "MongoDB", - "order" : 0.015, + "order" : 0.014, "challenges": [ { "id": "bd7243d8c341eddeaeb5bd0f", @@ -15,12 +15,11 @@ "Click on Create New Workspace at the top right of the c9.io page, then click on the \"Create a new workspace\" popup that appears below it the button after you click on it.", "Give your workspace a name.", "Choose Node.js in the selection area below the name field.", - "Click the Create button.", - "Wait for the workspace to finish processing and select it on the left sidebar, below the Create New Workspace button.", - "Click the \"Start Editing\" button.", + "Click the Create button. Then click into your new workspace.", "In the lower right hand corner you should see a terminal window. In this window use the following commands. You don't need to know what these mean at this point.", "Install learnyoumongo with this command: npm install learnyoumongo -g", "Now start the tutorial by running learnyoumongo.", + "Whenever you run a command that includes mongod on c9.io, be sure to also use the --nojournal flag, like this: mongod --nojournal.", "Note that you can resize the c9.io's windows by dragging their borders.", "Make sure that you are always in your project's \"workspace\" directory. You can always navigate back to this directory by running this command: cd ~/workspace.", "You can view this Node School module's source code on GitHub at https://github.com/evanlucas/learnyoumongo.", diff --git a/seed/challenges/nodejs-and-expressjs.json b/seed/challenges/nodejs-and-expressjs.json index 4d000b386d..10da3ae8c2 100644 --- a/seed/challenges/nodejs-and-expressjs.json +++ b/seed/challenges/nodejs-and-expressjs.json @@ -1,6 +1,6 @@ { "name": "Node.js and Express.js", - "order" : 0.014, + "order" : 0.013, "challenges": [ { "id": "bd7153d8c441eddfaeb5bd0f", @@ -15,9 +15,7 @@ "Click on Create New Workspace at the top right of the c9.io page, then click on the \"Create a new workspace\" popup that appears below it the button after you click on it.", "Give your workspace a name.", "Choose Node.js in the selection area below the name field.", - "Click the Create button.", - "Wait for the workspace to finish processing and select it on the left sidebar, below the Create New Workspace button.", - "Click the \"Start Editing\" button.", + "Click the Create button. Then click into your new workspace.", "In the lower right hand corner you should see a terminal window. In this window use the following commands. You don't need to know what these mean at this point.", "Install how-to-npm with this command: npm install -g how-to-npm", "Now start the tutorial by running how-to-npm.", @@ -71,9 +69,7 @@ "Click on Create New Workspace at the top right of the c9.io page, then click on the \"Create a new workspace\" popup that appears below it the button after you click on it.", "Give your workspace a name.", "Choose Node.js in the selection area below the name field.", - "Click the Create button.", - "Wait for the workspace to finish processing and select it on the left sidebar, below the Create New Workspace button.", - "Click the \"Start Editing\" button.", + "Click the Create button. Then click into your new workspace.", "In the lower right hand corner you should see a terminal window. In this window use the following commands. You don't need to know what these mean at this point.", "Run this command: sudo npm install -g learnyounode", "Now start this tutorial by running learnyounode", @@ -175,9 +171,7 @@ "Click on Create New Workspace at the top right of the c9.io page, then click on the \"Create a new workspace\" popup that appears below it the button after you click on it.", "Give your workspace a name.", "Choose Node.js in the selection area below the name field.", - "Click the Create button.", - "Wait for the workspace to finish processing and select it on the left sidebar, below the Create New Workspace button.", - "Click the \"Start Editing\" button.", + "Click the Create button. Then click into your new workspace.", "In the lower right hand corner you should see a terminal window. In this window use the following commands. You don't need to know what these mean at this point.", "Run this command: git clone http://github.com/reddock/fcc_express && chmod 744 fcc_express/setup.sh && fcc_express/setup.sh && source ~/.profile", "Now start this tutorial by running expressworks", diff --git a/seed/challenges/object-oriented-programming.json b/seed/challenges/object-oriented-programming.json index 7e4b87ef1b..3b4c8f4d1f 100644 --- a/seed/challenges/object-oriented-programming.json +++ b/seed/challenges/object-oriented-programming.json @@ -15,9 +15,7 @@ "Click on Create New Workspace at the top right of the c9.io page, then click on the \"Create a new workspace\" popup that appears below it the button after you click on it.", "Give your workspace a name.", "Choose Node.js in the selection area below the name field.", - "Click the Create button.", - "Wait for the workspace to finish processing and select it on the left sidebar, below the Create New Workspace button.", - "Click the \"Start Editing\" button.", + "Click the Create button. Then click into your new workspace.", "In the lower right hand corner you should see a terminal window. In this window use the following commands. You don't need to know what these mean at this point.", "Install scope-chains-closures with this command: npm install -g scope-chains-closures", "Now start the tutorial by running scope-chains-closures.", @@ -57,11 +55,9 @@ "Click on Create New Workspace at the top right of the c9.io page, then click on the \"Create a new workspace\" popup that appears below it the button after you click on it.", "Give your workspace a name.", "Choose Node.js in the selection area below the name field.", - "Click the Create button.", - "Wait for the workspace to finish processing and select it on the left sidebar, below the Create New Workspace button.", - "Click the \"Start Editing\" button.", + "Click the Create button. Then click into your new workspace.", "In the lower right hand corner you should see a terminal window. In this window use the following commands. You don't need to know what these mean at this point.", - "Install planet-proto with this command: npm install -g planetproto", + "Install planetproto with this command: npm install -g planetproto", "Now start the tutorial by running planetproto.", "Note that you can resize the c9.io's windows by dragging their borders.", "Make sure that you are always in your project's \"workspace\" directory. You can always navigate back to this directory by running this command: cd ~/workspace.", diff --git a/server/boot/challenge.js b/server/boot/challenge.js index b75c810ed9..9562829a0f 100644 --- a/server/boot/challenge.js +++ b/server/boot/challenge.js @@ -244,7 +244,7 @@ module.exports = function(app) { title: challenge.name, dashedName: origChallengeName, name: challenge.name, - details: challenge.description.slice(1), + details: challenge.description, tests: challenge.tests, challengeSeed: challenge.challengeSeed, verb: utils.randomVerb(), @@ -256,7 +256,6 @@ module.exports = function(app) { video: challenge.challengeSeed[0], // bonfires specific difficulty: Math.floor(+challenge.difficulty), - brief: challenge.description.shift(), bonfires: challenge, MDNkeys: challenge.MDNlinks, MDNlinks: getMDNLinks(challenge.MDNlinks),