All pages
Powered by GitBook
1 of 4

Loading...

Loading...

Loading...

Loading...

NodeJS

Module Introduction

Learning Objectives

  • Define what an API is used for

  • Use npm to start a node server

  • Explain what express is and what it is used for

  • Use express to create an API that will accept a GET request that returns JSON

  • Implement routing to return different resources depending on URL

  • Implement query params to return different content (?query=ses)

  • Define what each part of CRUD is and what it does

  • Process a GET request using Express and Node to retrieve data from memory

  • Process a POST request using Express and Node and store data in memory

  • Process a DELETE request using Express and Node to remove data from memory

  • Install a third party library using npm

  • Introduce Express Middleware and why it is used.

  • Implement Authentication using JSON web tokens or OAuth 2.0 Authentication framework.

Lessons

1 - Node and Express 101
2 - APIs in Node
3 - Workshop

1 - Node and Express 101

Notes for Instructors

If you are teaching this class in the coming weeks you must instruct your students to complete the instructions below.

Install Postman

Install the software "Postman" for your OS.

If students do not arrive with these steps completed then you will lose a lot of time on your first lesson. You should consider running short mid-week sessions the week before to help students get set up.

Homework Suggestion

Remember copy the Homework to the at the end of the class

  1. If you haven't already, complete the in-class exercises.

  2. Fork and clone the and finish Level 1 and 2.

Practice Day (Saturday)

Live coding session with students to go over project level 1 and 2 and Q&A session to clear their doubts.

Feedback

We can always improve thanks to your feedback, you can use this document to send your ideas or suggestions on every week. This will help us to improve Syllabus and this guide

https://www.getpostman.com/downloads/
Trello
quote-server repo
quote-server repo
document

3 - Workshop

Homework Suggestion

Remember copy the Homework to the Trello at the end of the class

  1. If you haven't already, complete the in-class exercises.

  2. Create a react app with three pages Login, Sign-up and Home which we will use on Saturday to connect with the Auth API we created today.

Practice Day (Saturday)

Live coding session with students to go over Auth API project and How to connect it with Front-end created using React and Q&A session to clear their doubts.

Feedback

We can always improve thanks to your feedback, you can use this document to send your ideas or suggestions on every week. This will help us to improve Syllabus and this guide

document

2 - APIs in Node

Presentations

  • Week 2 - Node [Self-Hosted Slides] - 21/06/2020

    • Created by London and Jim

    • Created by Birmingham & Mark Farmiloe

Homework Suggestion

Remember copy the Homework to the at the end of the class

  1. If you haven't already, complete the in-class exercises.

  2. Fork and clone the and finish Level 1 and 2.

Optional

  1. and finish Level 3 and 4.

  2. Fork and clone repository and follow the exercises

Practice Day (Saturday)

Live coding session with students to go over project and Q&A session to clear their doubts.

Feedback

We can always improve thanks to your feedback, you can use this document to send your ideas or suggestions on every week. This will help us to improve Syllabus and this guide

Client Server Communication - 25/10/2020
Trello
chat-server repo
chat-server repo
CYF-Hotel
chat-server repo
document