Explore all newline lessons
lesson
How to Install Apollo Server for GraphQLThe newline Guide to Building Your First GraphQL Server with Node and TypeScriptIn this lesson, we'll install the Express variation of the popular Apollo Server library and the GraphQL JavaScript library.
lesson
GraphQL Schema, Object Types, and Function ExamplesThe newline Guide to Building Your First GraphQL Server with Node and TypeScriptIn this lesson, we introduce and discuss some of GraphQL's main concepts such as the GraphQL schema, object types and resolver functions.
lesson
GraphQL vs REST APIs, and When to Use GraphQLThe newline Guide to Building Your First GraphQL Server with Node and TypeScriptBefore we continue discussing some of the core concepts in GraphQL, we'll take a bit of a tangent in this lesson to contrast and compare Github's existing REST API (v3) and their GraphQL API (v4). We'll dive into a good example that showcases GraphQL before we discuss and address some of GraphQL's core concepts.
lesson
A GraphQL Tutorial for BeginnersThe newline Guide to Building Your First GraphQL Server with Node and TypeScriptGraphQL is a query language for APIs. In this lesson, we go through an initial discussion on GraphQL and how GraphQL differs from traditional REST APIs.
lesson
How to Build an Express API with GET and POST RoutesThe newline Guide to Building Your First GraphQL Server with Node and TypeScriptIn this lesson, we'll use the routing capabilities Express gives us to create GET and POST routes that interact with the mock data listings array we've established.
lesson
How to use ESLint to Check TypeScript Code for IssuesThe newline Guide to Building Your First GraphQL Server with Node and TypeScriptThough VSCode includes TypeScript language support which helps us pick up TypeScript errors in our TypeScript code, we'll introduce more robust code checking with ESLint - a popular open-source JavaScript/TypeScript linting tool.
lesson
How to Compile a TypeScript Node.js ProjectThe newline Guide to Building Your First GraphQL Server with Node and TypeScriptTypeScript is a development tool geared towards making building JavaScript applications more robust. In an application's deployed state (browser or server), TypeScript must be compiled to valid JavaScript. In this lesson, we'll see how the TypeScript compiler provides us with a command to compile and produce JavaScript code from TypeScript.
lesson
How to Set up a Node.js Server with TypeScriptThe newline Guide to Building Your First GraphQL Server with Node and TypeScriptWe'll get started with TypeScript in this lesson by installing a few necessary packages in our server and setting up the configuration of our TypeScript compiler.
lesson
What is TypeScript? A Beginner's GuideThe newline Guide to Building Your First GraphQL Server with Node and TypeScriptJavaScript is considered a weakly typed language. In this lesson, we'll go through a simple example of why that can be an issue in development and where TypeScript falls in the picture.
lesson
How to Automatically Reload a Node.js Server with NodemonThe newline Guide to Building Your First GraphQL Server with Node and TypeScriptNodemon is an open-source utility tool that helps automatically restart a Node server whenever a change in code is detected in development. In this lesson, we'll install Nodemon and introduce an application script that will start the Node server with Nodemon.
lesson
How to Create a Minimal Express Node.js ServerThe newline Guide to Building Your First GraphQL Server with Node and TypeScriptWeb servers provide functionality for requests that can be made from client applications. Node has a built-in HTTP module that provides the capability to create a server. With this lesson, we'll look to use the popular Express framework as the replacement of the core HTTP module to create a minimal Node server, with Express routing.
lesson
How to Run a JavaScript File with Node.jsThe newline Guide to Building Your First GraphQL Server with Node and TypeScriptIn this lesson, we'll use Node to run a simple JavaScript file on the server.