skip to Main Content

Class Resources for Node.js Hands-on Lab

Here are the class resources you’ll need to help you as you follow along in the class. Please do not share this page.
[one] [tabs] [tabs_item title=”Before you start”] Please take this pre-class survey

Then choose the tab above for the day of your class.

[/tabs_item] [tabs_item title=”Introductory Material”]
  1. Public and Views Zip
  2. Node.js Hands-on Lab slides
  3. Enable partials support
    hbs.registerPartials(__dirname + ‘/views/partials’);
  4. Enable supervisor in package.json
    “start”: “./node_modules/.bin/supervisor ./bin/www”
  5. formatDate helper code
  6. Demonstrate formatDate
  7. Connect to MongoDB
  8. Enable session support
  9. Test session support
  10. Profile creation module
  11. Account model
  12. Enable Passport in app.js
  13. Create routes/auth.js
  14. Require authentication
  15. Link model
  16. Link query
  17. Analyze page read-page.js
  18. POST route
  19. Router.route
  20. .env file
  21. Final code

BEFORE YOU GO:

Please take this post-class survey
[/tabs_item] [tabs_item title=”Advanced Material”]

Before class

  • Download the code for today: Project files
  • There are two node projects, for each, run npm install
  • Node.js Hands-on Lab slides
  • Sign up for $10 credit with Digital Ocean (credit card required, but it won’t be billed until your credit is exhausted)
  • Run MongoDB in a terminal:
    mkdir .db
    mongod –dbpath .db
  • Windows users: Powershell may cause problems

BEFORE YOU GO:

Please take this post-class survey[/tabs_item] [/tabs] [/one]


Ways to stay in touch or to say thank you:

  • Sign up for the newsletter (very low volume)
    Use the form on the right –>
  • Follow on Twitter
  • Like on Facebook
  • IGNORE THE SHARING IS CARING MESSAGE BELOW
    (for this page – otherwise, please share other content on this site)
[space]