Skip to content

yikedu7/greddit-server

Repository files navigation

example workflow
This project show you how to host an API server on AWS Lambda Function.
DO NOT USE IT ON PRODUCTION!!!
Online Demo

Tech Stack

  • Golang / Gofiber for backend
  • SQLite for storage
  • AWS / Serverless Framework for deployment
  • Zig for cgo cross-compile

Local Setup

  1. Create .env.local file like .env.example
  2. To run this project locally, run this command in root directory:
go run ./cmd/server/main.go

Deploy

  1. Install and setup Serverless Framework and AWS.
  2. Install Zig.
  3. Run this command to deploy lambda function:
make deploy