Skip to content

maverickayush7/LAMBDA-Serverless-Function-Platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A serverless function platform that allows you to run Python and Node.js code in isolated containers, similar to AWS Lambda.

Features

  • Run Python and Node.js code in isolated Docker containers
  • Support for multiple programming languages
  • Container isolation for security
  • Memory limits and timeout controls
  • Simple REST API for function management
  • Built-in code execution monitoring

Architecture Diagram:

WhatsApp Image 2025-04-21 at 08 50 20_dc455af8

Prerequisites

  • Python 3.10+
  • Docker
  • Node.js 18+ (for Node.js functions)

Setup Instructions

  1. Clone the Repository
git clone https://github.com/maverickayush7/LAMBDA-Serverless-Function-Platform.git
  1. Create a Virtual Environment
python -m venv venv
source venv/bin/activate
  1. Install Dependencies
pip install -r requirements.txt
  1. Start the FastAPI Backend
uvicorn backend.main:app --reload
  1. Start the Streamlit Frontend
streamlit run frontend/app.py
  1. Access the App

Supported Languages

  • Python 3
  • JavaScript (Node.js)

API Endpoints

Function Management

  • POST /functions/ - Upload a new function
  • GET /functions/{function_id} - Get function details
  • POST /functions/{function_id}/run - Execute a function
  • DELETE /functions/{function_id} - Delete a function

Project Structure

lambda-serverless-function/
├── backend/
│   ├── api/           # FastAPI routes and endpoints
│   ├── core/          # Core functionality
│   ├── db/            # Database models and operations
│   ├── schemas/       # Pydantic models
│   ├── tests/         # Test cases
│   └── utils/         # Utility functions
├── docker/            # Docker configuration files
├── frontend/          # Frontend application (if any)
└── requirements.txt   # Python dependencies

LAMBDA-Serverless-Function-Platform

About

Cloud Computing Project to design and implement a serverless function execution platform, similar to AWS Lambda.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors