add named routes to courses

This commit is contained in:
Michael Q Larson
2014-10-20 13:28:23 -07:00
parent 8f3c7b44c5
commit 972c52ca47
8 changed files with 153 additions and 39 deletions

10
app.js
View File

@ -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)

View File

@ -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: ''
});
};

View File

@ -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": [

View File

@ -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",

View File

@ -1,2 +1,3 @@
h1 Challenge
h2= name
h1 Challenges:
h2= name
img= image

View File

@ -0,0 +1,3 @@
h1 Course:
h2= name
img= image

View File

@ -1 +1,16 @@
h1 Challenges Partial
h1 Challenges:
ol
li
a(href="challenges/create-and-deploy-a-website") Learn how to create a website and deploy it to the internet
| &nbsp (takes 10 minutes)
li
a(href="challenges/start-a-pair-programming-session") Learn how to start Pair Programming session
| &nbsp (takes 10 minutes)
li
a(href="challenges/add-dynamic-content-to-your-website") Learn how to add dynamic content to your website
| &nbsp (takes 10 minutes)
li
a(href="challenges/experiment-with-html-and-css-in-codepen") Learn how to experiment with HTML and CSS in Codepen
| &nbsp (takes 10 minutes)
li
a(href="challenges") Start the HTML and CSS challenges!

View File

@ -1,5 +1,30 @@
h1 Courses Partial
h1 Free Courses:
//ul
// li
// a(href="courses/codecademy-html-and-css-track") Codecademy HTML & CSS Track
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