Skip to content

kingluddite/catchup-03-node-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

Catchup #3: Node and Express

Instructions

View the slides for today's presentation

URL to slideshow

Clone to your computer

  • note The $ below means "Type this in the Terminal". When writing the following Terminal commands, ignore the $ and type the rest. You will see people represent the Terminal on sites like Stackoverflow with the $. Repeat. You don't need to type the $. (Don't confuse this $ with the $ from jQuery)

$ git clone [email protected]:kingluddite/catchup-03-node-express.git

Pull down all branches

  • Each of the lessons will be contained inside their own branches. You need to pull down these remote branches to your local machine

  • Use the following two commands to pull remote branches down to your local machine

  • $ git fetch --all

  • $ git pull --all

  • $ git branch -a (will show you remote branches)

Checkout branches locally

  • To focus more on the code we will just checkout a branch to work on the next lesson
  • You have access to the repo after the Catchup so you can play around with the code (the best way to learn how to code is.... to code)
  • To checkout a branch just type any of the following to checkout that particular branch
  • To see all your branches you can type $ git branch, (you won't see a list of the branches until you check each one out individually)
  • To break out of the list of branches type q for quit

Clear a branch of work you don't want to commit

$ git checkout -- .

$ git checkout master
$ git checkout 01-console-log
$ git checkout 02-argv
$ git checkout 03-activity-01-start
$ git checkout 04-activity-01-solution
$ git checkout 05-get-demo
$ git checkout 06-activity-2-start
$ git checkout 07-activity-2-solution
$ git checkout 08-demo-post

Summary of Catchup

  • Node
    • Write Node
    • process.argv syntax
  • Activity 1
  • Review Client & Server / Express Class Notes
    • Point out the NYT Scraper App and how it works
  • GET/POST
    • Demo of GET
  • Activity 2 - Create a route to display data
    • Demo of POST
  • Activity 3 - Students replicate demo on their own
  • Student Feedback Survey

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published