<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/build-an-api-in-node-js-using-aws-api-gateway-mongodb-and-serverless-foxlcigfv" -->

---
title: Build an API in Node.js using AWS, API Gateway, MongoDB,...
description: This tutorial shows you how to build a secure REST API for a Notetaking react-redux application using MongoDB database as a service. We will follow a...
canonical: https://daily.dev/posts/build-an-api-in-node-js-using-aws-api-gateway-mongodb-and-serverless-foxlcigfv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Build an API in Node.js using AWS, API Gateway, MongoDB, and Serverless | daily.dev
og:description: This tutorial shows you how to build a secure REST API for a Notetaking react-redux application using MongoDB database as a service. We will follow a...
og:url: https://daily.dev/posts/build-an-api-in-node-js-using-aws-api-gateway-mongodb-and-serverless-foxlcigfv
og:image: https://api.daily.dev/og/posts/FoXLcIgfV.png
og:image:alt: Build an API in Node.js using AWS, API Gateway, MongoDB, and Serverless
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Build an API in Node.js using AWS, API Gateway, MongoDB, and Serverless

**[JavaScript in Plain English](https://daily.dev/sources/jsPlainEnglish)** · 6 min read · 49 upvotes · 2 comments

## Summary

This tutorial shows you how to build a secure REST API for a Notetaking react-redux application using MongoDB database as a service. We will follow a Serverless approach using AWS Lambda, API Gateway, and the Serverless framework. In Part 1, we are going to build the backend, and to go through this tutorial, you will need the following.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://javascript.plainenglish.io/building-a-rest-api-in-node-js-using-aws-services-mongodb-and-serverless-framework-9e0530baaa3f>

## Community discussion

Top comments from developers on daily.dev.

**@leal** · 1 upvotes

> Functional!

**@idoshamun** · 0 upvotes

> Learn how to build a serverless API for a notes application. It goes through all the required steps and the nitty-gritty.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#aws](https://daily.dev/tags/aws), [#general-programming](https://daily.dev/tags/general-programming), [#mongodb](https://daily.dev/tags/mongodb), [#nodejs](https://daily.dev/tags/nodejs), [#serverless](https://daily.dev/tags/serverless)

[View this post on daily.dev](https://daily.dev/posts/build-an-api-in-node-js-using-aws-api-gateway-mongodb-and-serverless-foxlcigfv)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Build an API in Node.js using AWS, API Gateway, MongoDB, and Serverless","url":"https://daily.dev/posts/build-an-api-in-node-js-using-aws-api-gateway-mongodb-and-serverless-foxlcigfv","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/build-an-api-in-node-js-using-aws-api-gateway-mongodb-and-serverless-foxlcigfv"},"datePublished":"2021-03-24T06:39:20.750Z","dateModified":"2026-03-15T03:28:53.798Z","description":"This tutorial shows you how to build a secure REST API for a Notetaking react-redux application using MongoDB database as a service. We will follow a...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/afea678faff7a6d117eef44ef537cc42","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/afea678faff7a6d117eef44ef537cc42","isAccessibleForFree":true,"articleSection":"JavaScript in Plain English","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"JavaScript in Plain English","logo":"https://media.daily.dev/image/upload/s--Dg5QTRuI--/f_auto,q_auto/v1686665538/logos/pe","url":"https://daily.dev/sources/jsPlainEnglish"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/build-an-api-in-node-js-using-aws-api-gateway-mongodb-and-serverless-foxlcigfv","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":49},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"architecture,aws,general-programming,mongodb,nodejs,serverless","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"JavaScript in Plain English","item":"https://daily.dev/sources/jsPlainEnglish"},{"@type":"ListItem","position":3,"name":"Build an API in Node.js using AWS, API Gateway, MongoDB, and Serverless"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/build-an-api-in-node-js-using-aws-api-gateway-mongodb-and-serverless-foxlcigfv","comment":[{"@type":"Comment","text":"Functional!","datePublished":"2021-03-24T16:29:48.162Z","url":"https://daily.dev/posts/FoXLcIgfV#c-prSDGdDpD","author":{"@type":"Person","name":"Francisco","url":"https://daily.dev/leal","image":"https://avatars.githubusercontent.com/u/491817?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Learn how to build a serverless API for a notes application. It goes through all the required steps and the nitty-gritty.","datePublished":"2021-03-31T07:14:54.865Z","url":"https://daily.dev/posts/FoXLcIgfV#c-0k3Vp8Y01","author":{"@type":"Person","name":"Ido Shamun","url":"https://daily.dev/idoshamun","image":"https://media.daily.dev/image/upload/s---xy_OAwk--/f_auto,q_auto/v1703781380/avatars/avatar_28849d86070e4c099c877ab6837c61f0"}}]}
```

