5 Followers
·
Follow

In this tutorial, a step-by-step guide to create and deploy a RESTful Serverless microservice Node.js + SQLite on AWS lambda.

If you what you need is exposing some static data over HTTP and you are happy with a serverless architecture, this article is for you.

Project creation

npm init
npm install --save express serverless-http

As you probably already know, Express.js is the lightweight node framework to handle HTTP requests that will be used in our index.js.

Serverless-http is an useful middleware library that allows (with one simple call) to expose our Express.js routes to API gateway.

Hello world

This code declares one route returning “Hello” when the home URL (/) is…

E Ciotti

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store