Prevent vulnerabilities and increase readability.

Image by Author

1. Do not call Object.prototype methods directly

Null object

const obj = Object.create(null)
obj.hasOwnProperty("name")
//Uncaught TypeError: obj.hasOwnProperty …


It’s simpler than you think

Image by Author

The goal

  1. Build the most basic Discord Bot.
  2. Link the Bot to a Discord Server.
  3. Add functionality to track Coronavirus cases for a given country.


No matter your skill level

Image by Author

A purposeful selection


Photo by Author

What is an API?


Photo by Author

Topics Covered

  1. Variables
  2. Data Types
  3. Optional Values
  4. Collections
  5. For-In Loops
  6. Functions

Variables — Var vs Let

var name = "Wallace"
name = "Gromit"


Photo by Author

Using Array Destructuring For Functions With Multiple Return Values

const func = () => { const a = 1; const b = 2…


A walkthrough for creating and deploying a GraphQL API with Node.js.

Photo by Author

The Goal

  1. Save podcasts (name and URL) in a cloud database.
  2. Query all of our saved podcasts.
  3. Update & Delete the saved podcasts.

Some Prerequisites

  1. Node.js installed locally on your machine. You can get it here.
  2. A MongoDB Atlas account, which you can create here.
  3. A Heroku Account. Get that here.
  4. The Heroku CLI installed locally on your machine. Get that here.
  5. Git installed locally on your machine. Get that here.
  6. Postman, a super handy tool we’ll be using to test our API. Get that here.

Setup


Photo by Author

Pre-Checklist

  1. Node.js version 6.x or later installed locally on your machine. You can get it here.
  2. An AWS account, which you can create here.
  3. We’ll be using pgAdmin to create our database tables, you can download that here.
  4. Postman, a super handy tool we’ll be using to test our API. Get that here.
  5. A hot beverage of choice. Mine is a latte. ☕

Installing the Serverless Framework CLI

Giuseppe

I share code and explain technical concepts.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store