Skip to content

a short breakdown of GA-SF's approach to teaching node fundamentals

Notifications You must be signed in to change notification settings

OfTheDelmer/teaching_node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Teaching Node

Web Fundamentals

Objectives
Compare and contrast parallels between teaching Rails and Express
Answer questions related to teaching JS first curriculum.

Typical Files Of Interest

In a Rails application we would typically have a few main files to discuss when teaching CRUD to students.

  • config/routes.rb
  • controllers/todo_controller.rb
  • views/*.html.erb
  • models/todo.rb
  • Gemfile

In a very simple Express CRUD application we have most the routing and control logic in a single application file, similar to a Sinatra application. However, we still have a large number of parallels.

  • models/todo.js
  • views/*.ejs
  • app.js
  • package.json

Models

With Rails ActiveRecord gives us both a migration system and a modeling system for our database. In the node world the existing solution for this is Sequelize, which is not without it's faults, but gets the job done.

Views (EJS)

EJS is remarkably similar to ERB, and is great way to prepare them for working with ERB.

Express Setup

Express is relatively simple API to fiddle with and teach to students.

Current SF WDI Instance

Other Resources

About

a short breakdown of GA-SF's approach to teaching node fundamentals

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published