Today’s session is a continuation of last week’s “How to build an API with node.js”

In this short episode, I cover how to save data to a JSON file with Node.js in order to add persistence to our data. I also create s simple front end client for my API in order to add data to my JSON file through an HTML form (and not by entering data directly in a URL).

8:18 – Intro to this week’s topics
21:48 – Saving Data to a JSON file
44:11 – Adding Front End Client
57:50 – Conclusion/Q&A

This week’s URL:

Support this channel on Patreon:

Send me your questions and coding challenges!:


GitHub Repo with all the info for Programming from A to Z:

Links discussed in this video:
Node.js “fs” Documentation:
Sirajology Youtube Channel:

Source Code for the all Video Lessons:


For More Live Streams:

For More Programming from A to Z:

Help us caption & translate this video!