/sitepoint-fastify

Fastify API using Node.js

Primary LanguageJavaScript

How to Create Your First REST API With Fastify

Requirements and Installation

To follow this tutorial, you'll need:

  1. Latest Node.js version
  2. Tool for sending requests, such as cURL or Postman

Next, make sure to create an empty Node.js project. If you don't have one yet, you can use the following command to set up your project:

npm init -y

Lastly, we want to add this Fastify dependency to our project.

npm i fastify --save