diff --git a/app.js b/app.js index 5310c51b83..008f0b2862 100644 --- a/app.js +++ b/app.js @@ -124,6 +124,16 @@ app.get('/', homeController.index); app.get('/curriculum', curriculumController.index); app.get('/course/:id', courseController.view); app.get('/courses', courseController.index); +app.get('/course/codecademy-html-and-css-track', courseController.codecademyHtmlAndCssTrack) +app.get('/course/code-school-discover-devtools-course', courseController.codeSchoolDiscoverDevtoolsCourse) +app.get('/course/code-school-try-jquery-course', courseController.codeSchoolTryJqueryCourse) +app.get('/course/codecademy-javascript-track', courseController.codecademyJavascriptTrack) +app.get('/course/harvard-introduction-to-computer-science-cs50-course', courseController.harvardIntroductionToComputerScienceCs50Course) +app.get('/course/linux-command-line-tutorial', courseController.linuxCommandLineTutorial) +app.get('/course/code-school-try-git-course', courseController.codeSchoolTryGitCourse) +app.get('/course/code-school-real-time-with-node-js-course', courseController.codeSchoolRealTimeWithNodeJsCourse) +app.get('/course/code-school-shaping-up-with-angular-js-course', courseController.codeSchoolShapingUpWithAngularJsCourse) +app.get('/course/m101js-mongodb-for-node-js-developers-course', courseController.m101jsMongoDBForNodeJsDevelopersCourse) //app.get('/challenges/:id', challengeController.view); //app.get('/challenges', challengeController.index); app.get('/challenges/create-and-deploy-a-website', challengeController.createAndDeployAWebsite) diff --git a/controllers/course.js b/controllers/course.js index be24e49c27..f8d40e3009 100644 --- a/controllers/course.js +++ b/controllers/course.js @@ -19,4 +19,64 @@ exports.view = function(req, res) { course: course }); }); +}; + +exports.codecademyHtmlAndCssTrack = function(req, res) { + res.render('course/codecademy-html-and-css-track', { + name: '' + }); +}; + +exports.codeSchoolDiscoverDevtoolsCourse = function(req, res) { + res.render('course/code-school-discover-devtools-course', { + name: '' + }); +}; + +exports.codeSchoolTryJqueryCourse = function(req, res) { + res.render('course/code-school-try-jquery-course', { + name: '' + }); +}; + +exports.codecademyJavascriptTrack = function(req, res) { + res.render('course/codecademy-javascript-track', { + name: '' + }); +}; + +exports.harvardIntroductionToComputerScienceCs50Course = function(req, res) { + res.render('course/harvard-introduction-to-computer-science-cs50-course', { + name: '' + }); +}; + +exports.linuxCommandLineTutorial = function(req, res) { + res.render('course/linux-command-line-tutorial', { + name: '' + }); +}; + +exports.codeSchoolTryGitCourse = function(req, res) { + res.render('course/code-school-try-git-course', { + name: '' + }); +}; + +exports.codeSchoolRealTimeWithNodeJsCourse = function(req, res) { + res.render('course/code-school-real-time-with-node-js-course', { + name: '' + }); +}; + +exports.codeSchoolShapingUpWithAngularJsCourse = function(req, res) { + res.render('course/code-school-shaping-up-with-angular-js-course', { + name: '' + }); +}; + +exports.m101jsMongoDBForNodeJsDevelopersCourse = function(req, res) { + res.render('course/m101js-mongodb-for-node-js-developers-course', { + name: '' + }); }; \ No newline at end of file diff --git a/seed_data/challenges.json b/seed_data/challenges.json index 77eef540e6..bb5d68f95f 100644 --- a/seed_data/challenges.json +++ b/seed_data/challenges.json @@ -40,6 +40,17 @@ "You'll create your own databaseless webpage. We'll show you how." ] }, + { + "name": "Code Your First API Integration", + "source": "Free Code Camp", + "link": "http://www.freecodecamp.com/", + "image": "http://status.twilio.com/images/logo.png", + "time": 2, + "directions": [ + "Now it's time to flex your JavaScript skills and string together an array of data structures (puns intended).", + "And what better way than a to build a simple text messaging app?" + ] + }, { "source": "Project Euler", "directions": [ diff --git a/seed_data/courses.json b/seed_data/courses.json index 5e9f7811b9..ee0252f423 100644 --- a/seed_data/courses.json +++ b/seed_data/courses.json @@ -19,6 +19,27 @@ "Code School's interactive jQuery course will help you understand how to manipulate page elements and capture information that your users give you." ] }, + { + "name": "Code School's Discover DevTools", + "link": "http://discover-devtools.codeschool.com/", + "image": "https://d1ffx7ull4987f.cloudfront.net/images/achievements/large_badge/197/completed-discover-devtools-b769c8b681384be3ad04cdf813b4a62c.png", + "time": 4, + "directions": [ + "Did you know you can change the HTML and CSS on this page? You can even inject JavaScript. In fact, you can do this on any webpage!", + "Chrome has a built in DevTools that allow you to debug web pages, right in your browser. This is a super handy tool when you're building web applications.", + "This course will walk you through using these tools, and test your new skills with 75 exercises." + ] + }, + { + "name": "Codecademy JavaScript Track", + "link": "http://www.codecademy.com/tracks/javascript", + "image": "https://d13yacurqjgara.cloudfront.net/users/98247/screenshots/1673756/codecademy_design.png", + "time": 10, + "directions": [ + "All right, now let's start coding!", + "Codecademy's popular JavaScript track will teach you some basic syntax and common programming data structures in just a few hours." + ] + }, { "name": "Linux Command Line Tutorial", "link": "https://www.udemy.com/linux-command-line-volume1/", @@ -40,16 +61,6 @@ "This short course will help you install git and learn how it works." ] }, - { - "name": "Codecademy JavaScript Track", - "link": "http://www.codecademy.com/tracks/javascript", - "image": "https://d13yacurqjgara.cloudfront.net/users/98247/screenshots/1673756/codecademy_design.png", - "time": 10, - "directions": [ - "All right, now let's start coding!", - "Codecademy's popular JavaScript track will teach you some basic syntax and common programming data structures in just a few hours." - ] - }, { "name": "Introduction to Computer Science", "link": "https://www.edx.org/course/harvardx/harvardx-cs50x-introduction-computer-1022#.VDWSfSldWpQ", @@ -61,28 +72,6 @@ "It's a long course, so be sure to mix it up with frequent pair programming sessions on FreeCodeCamp challenges." ] }, - { - "name": "Code School's Discover DevTools", - "link": "http://discover-devtools.codeschool.com/", - "image": "https://d1ffx7ull4987f.cloudfront.net/images/achievements/large_badge/197/completed-discover-devtools-b769c8b681384be3ad04cdf813b4a62c.png", - "time": 4, - "directions": [ - "Did you know you can change the HTML and CSS on this page? You can even inject JavaScript. In fact, you can do this on any webpage!", - "Chrome has a built in DevTools that allow you to debug web pages, right in your browser. This is a super handy tool when you're building web applications.", - "This course will walk you through using these tools, and test your new skills with 75 exercises." - ] - }, - { - "name": "Code Your First API Integration", - "source": "Free Code Camp", - "link": "http://www.freecodecamp.com/", - "image": "http://status.twilio.com/images/logo.png", - "time": 10, - "directions": [ - "Now it's time to flex your JavaScript skills and string together an array of data structures (puns intended).", - "And what better way than a to build a simple text messaging app?" - ] - }, { "name": "Code School's Real-time web with Node.JS", "link": "https://www.codeschool.com/courses/real-time-web-with-node-js", diff --git a/views/challenge/partials/challenge.jade b/views/challenge/partials/challenge.jade index 744a32a3b2..c0035c04c1 100644 --- a/views/challenge/partials/challenge.jade +++ b/views/challenge/partials/challenge.jade @@ -1,2 +1,3 @@ -h1 Challenge -h2= name \ No newline at end of file +h1 Challenges: +h2= name +img= image diff --git a/views/course/partials/course.jade b/views/course/partials/course.jade new file mode 100644 index 0000000000..54707691d9 --- /dev/null +++ b/views/course/partials/course.jade @@ -0,0 +1,3 @@ +h1 Course: +h2= name +img= image diff --git a/views/partials/challenges.jade b/views/partials/challenges.jade index fa22666777..8ec81d6c2d 100644 --- a/views/partials/challenges.jade +++ b/views/partials/challenges.jade @@ -1 +1,16 @@ -h1 Challenges Partial \ No newline at end of file +h1 Challenges: +ol + li + a(href="challenges/create-and-deploy-a-website") Learn how to create a website and deploy it to the internet + |   (takes 10 minutes) + li + a(href="challenges/start-a-pair-programming-session") Learn how to start Pair Programming session + |   (takes 10 minutes) + li + a(href="challenges/add-dynamic-content-to-your-website") Learn how to add dynamic content to your website + |   (takes 10 minutes) + li + a(href="challenges/experiment-with-html-and-css-in-codepen") Learn how to experiment with HTML and CSS in Codepen + |   (takes 10 minutes) + li + a(href="challenges") Start the HTML and CSS challenges! \ No newline at end of file diff --git a/views/partials/courses.jade b/views/partials/courses.jade index d1d50bd92e..b60ec0e0a4 100644 --- a/views/partials/courses.jade +++ b/views/partials/courses.jade @@ -1,5 +1,30 @@ -h1 Courses Partial +h1 Free Courses: -//ul -// li -// a(href="courses/codecademy-html-and-css-track") Codecademy HTML & CSS Track \ No newline at end of file +ol + li Web Design: + ul + li + a(href="courses/codecademy-html-and-css-track") Codecademy's HTML & CSS Track + li + a(href="courses/code-school-discover-devtools-course") Code School's Discover DevTools + li + a(href="courses/code-school-try-jquery-course") Code School's Try jQuery course + li JavaScript and Computer Science: + ul + li + a(href="courses/codecademy-javascript-track") Codecademy's JavaScript track + ul + li + a(href="courses/harvard-introduction-to-computer-science-cs50-course") Harvard's Introduction to Computer Science (CS50) + li + a(href="courses/linux-command-line-tutorial") Linux Command Line tutorial + li + a(href="courses/code-school-try-git-course") Code School's Try Git + li Full Stack JavaScript Development: + ul + li + a(href="courses/code-school-real-time-with-node-js-course") Code School's Real-time web with Node.JS + li + a(href="courses/code-school-shaping-up-with-angular-js-course") Code School's Shaping up with Angular.JS + li + a(href="courses/m101js-mongodb-for-node-js-developers-course") MongoDB University's MongoDB for Node.js Developers \ No newline at end of file