Web · Advanced

Back end with Node

Run JavaScript on the server: files and command-line tools, then an HTTP API, then a real database and secure sign-in.

  • 3 levels
  • 38 hands-on classes
  • 3 level exams
  • about 7 h

What you'll be able to doBuild the back end of a real shop in Node: files and scripts, an HTTP API, a database, sign-in, and tests that catch bugs.

0%Not started
Level 1 · 11 classes and an exam

Node basics

Write programs that read and change files and run from the terminal.

0/12

Recap of this level

  1. Class 1Your first Node programYou are herePlus · Ultra
  2. Class 2Modules: require and module.exportsPlus · Ultra
  3. Class 3Words after the file namePlus · Ultra
  4. Class 4Read a filePlus · Ultra
  5. Class 5Write a report filePlus · Ultra
  6. Class 6Paths that work on any machinePlus · Ultra
  7. Class 7Change a JSON filePlus · Ultra
  8. Class 8When a file is not therePlus · Ultra
  9. Class 9Settings from the environmentPlus · Ultra
  10. Class 10A command-line toolPlus · Ultra
  11. Class 11Read files without waiting in linePlus · Ultra
  12. Level exam · 3 questionsLevel 1 project: the restock toolPlus · Ultra
Level 2 · 14 classes and an exam

An HTTP API

Build a server that answers requests with the right status, headers and JSON.

0/15

Recap of this level

Pass the level 1 exam to open this level.

  1. Class 12Your first serverPlus · Ultra
  2. Class 13RoutesPlus · Ultra
  3. Class 14Answer with JSONPlus · Ultra
  4. Class 15Read the request bodyPlus · Ultra
  5. Class 16Query stringsPlus · Ultra
  6. Class 17One item by its idPlus · Ultra
  7. Class 18Create: POST and 201Plus · Ultra
  8. Class 19Update and deletePlus · Ultra
  9. Class 20Check what comes inPlus · Ultra
  10. Class 21When something breaks insidePlus · Ultra
  11. Class 22MiddlewarePlus · Ultra
  12. Class 23Let the shop front call the APIPlus · Ultra
  13. Class 24An access logPlus · Ultra
  14. Class 25Keep the data after a restartPlus · Ultra
  15. Level exam · 3 questionsLevel 2 project: the orders APIPlus · Ultra
Level 3 · 13 classes and an exam

Data and security

Keep data in a real database, sign people in safely and test the API.

0/14

Recap of this level

Pass the level 2 exam to open this level.

  1. Class 26From a file to a databasePlus · Ultra
  2. Class 27SQL injectionPlus · Ultra
  3. Class 28Add and remove rowsPlus · Ultra
  4. Class 29Join tablesPlus · Ultra
  5. Class 30Store passwords safelyPlus · Ultra
  6. Class 31Sign upPlus · Ultra
  7. Class 32Sign inPlus · Ultra
  8. Class 33Signed tokensPlus · Ultra
  9. Class 34Protect the routesPlus · Ultra
  10. Class 35Admins onlyPlus · Ultra
  11. Class 36Slow down password guessingPlus · Ultra
  12. Class 37Secrets in the environmentPlus · Ultra
  13. Class 38Test the APIPlus · Ultra
  14. Level exam · 3 questionsLevel 3 project: the secure notes APIPlus · Ultra
Finish line: Back end with NodeEach level exam you pass gives you that level's trophy. Pass every level exam to finish the course and graduate.