Free Course Image Build a RESTful API

Free online courseBuild a RESTful API

Duration of the online course: 57 minutes

New

Build and deploy a RESTful API course with Firebase Cloud Functions, Firestore and Express. Learn CRUD, test with Postman, and earn a free certificate.

In this free course, learn about

  • Stack overview: Firebase Cloud Functions + Firestore + Express for a RESTful CRUD API
  • Firebase project setup for an API and choosing Cloud Firestore for scalable, queryable data
  • Structuring a Node.js/Express app to run inside a Firebase Cloud Function
  • How Express routes map to REST endpoints and handle req/res in Cloud Functions
  • Creating a POST route to add documents to Firestore (e.g., POST /api/create)
  • Why and how to use a Firebase service account key for Admin SDK server authentication
  • Reading one document by ID with a GET route pattern (e.g., GET /api/product/:id)
  • Reading all documents via a GET endpoint: query collection, map results, return JSON
  • Updating a document via PUT/PATCH semantics and Firestore update/set patterns
  • Deleting a document via a DELETE endpoint and Firestore document deletion
  • CRUD testing workflow using Postman for local and deployed endpoints
  • Deploying the API as a Firebase Cloud Function (firebase deploy) and re-testing live

Course Description

Learn how to design, build, and deploy a production-style RESTful API using a modern serverless backend. In this free online course, you will create an API powered by Firebase Cloud Functions and Firestore, connecting a clean Express-based HTTP layer to a scalable database so your endpoints can evolve from a simple prototype into a real project. If you want backend development skills that translate to freelance work, portfolio projects, or junior developer roles, this course helps you practice the essentials in a way that mirrors real-world API building.

You will start by setting up Firebase correctly, then structure a JavaScript web app that can run as a Cloud Function while still following familiar backend patterns. Along the way, you will see how Express organizes routes, request handling, and responses, making it easier to keep your code readable as the API grows. Firestore is used as the data layer, so you can work with a database designed for strong querying, flexible schemas, and cloud scaling without managing servers.

From there, you will implement the core REST operations for a simple product resource. You will practice creating new records securely, reading an item by ID, returning collections of items, and making safe updates and deletions. The focus is on understanding the API workflow end to end: validating requests, mapping routes to database operations, shaping consistent JSON responses, and handling common edge cases so your endpoints behave predictably.

Finally, you will test your CRUD behavior the way backend developers do in everyday work, using Postman to verify requests and responses before publishing. Once the API works locally, you will deploy it as a Firebase Cloud Function and re-test the live endpoints to confirm everything behaves the same in a hosted environment. By the end, you will have hands-on experience with a practical stack and a clearer understanding of what it takes to ship a RESTful API that is easy to use, simple to maintain, and ready to demonstrate in your portfolio.

Course content

  • Video class: Building a RESTful API with Cloud Functions and Firestore - 01 - Intro 02m
  • Exercise: Which combination best describes the stack used to build and host the RESTful API?
  • Video class: Building a RESTful API with Cloud Functions and Firestore - 02 - Firebase Setup 05m
  • Exercise: When setting up the database for a REST API project in Firebase, which database option should you choose for second-generation features like better queries and scaling?
  • Video class: Building a RESTful API with Cloud Functions and Firestore - 03 - Basic Structure in JS Web App 10m
  • Exercise: In a Firebase REST API using Cloud Functions, what role does Express play?
  • Video class: Building a RESTful API with Cloud Functions and Firestore - 04 - Create Route and Service Account 10m
  • Exercise: What is the main purpose of generating a Firebase service account private key when building the POST /api/create route?
  • Video class: Building a RESTful API with Cloud Functions and Firestore - 05 - Read Product Route 05m
  • Exercise: Which HTTP method and route pattern are used to read a specific product from Firestore by its ID?
  • Video class: Building a RESTful API with Cloud Functions and Firestore - 06 - Read all Products Route 07m
  • Exercise: When creating a REST GET endpoint to read all products from Firestore, what is the correct high-level flow?
  • Video class: Building a RESTful API with Cloud Functions and Firestore - 07 - Update and delete product routes 08m
  • Exercise: When updating a product in a RESTful API using Firebase Cloud Functions and Firestore, which HTTP method should be used to signal an update?
  • Video class: Building a RESTful API with Cloud Functions and Firestore - 08 - Deploy and re-test with Postman 06m
  • Exercise: After finishing local CRUD testing, what is the main step used to publish the RESTful API as a Firebase Cloud Function?

This free course includes:

57 minutes of online video course

Digital certificate of course completion (Free)

Exercises to train your knowledge

100% free, from content to certificate

Ready to get started?Download the app and get started today.

Install the app now

to access the course
Icon representing technology and business courses

Over 5,000 free courses

Programming, English, Digital Marketing and much more! Learn whatever you want, for free.

Calendar icon with target representing study planning

Study plan with AI

Our app's Artificial Intelligence can create a study schedule for the course you choose.

Professional icon representing career and business

From zero to professional success

Improve your resume with our free Certificate and then use our Artificial Intelligence to find your dream job.

You can also use the QR Code or the links below.

QR Code - Download Cursa - Online Courses

More free courses at Backend development

Free Ebook + Audiobooks! Learn by listening or reading!

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate