Remake-Serverless — use Remake without a server

Sai Ramachandran
4 min readDec 31, 2021

This is Part 2 of a two part series introducing you to Remake. This is Part 1 which covers the rationale behind using Remake.

tl;dr; — a deep dive into Remake’s serverless version backend.

Full Disclosureremake-serverlesshhas little to do with remakeproper. David Miranda has graciously helped me better understand and appreciate remake but, at the end of the dayremake-serverless scratches a personal itch — since I’m very much invested in the Serverless ecosystem, particularly AWS, remake in its original form wouldn’t work for me.

Photo by Marc PEZIN on Unsplash

Introduction

In Part 1, I briefly talked about remake-serverless (Github) which makes it possible for you to use Remake without needing to spin up an Express server.

In this article, I will dive more deeply into how we can use remake-serverlessto read and write data to an S3 backend instead of relying on an Express server.

Orientation

Since we are going to use Remake in a Serverless environment, we can no longer rely on the Express server to manage user auth and file management.

Therefore, user auth is being handled by AWS Cognito while file management is being handled by a combination of S3 and a single Lambda function.

--

--

Sai Ramachandran

Building https://squadgpt.ai - GPT for teams. Manage AI costs and retain visibility with SquadGPT. All views personal. Email = sai@squadgpt.ai