A complete file browsing solution for synagogue document management, consisting of an AWS Lambda API backend and a web interface frontend.
AWS Lambda function that provides a REST API to browse files stored in the google-drivesync-backup S3 bucket.
Features:
- Lists all files from S3 bucket with
drivesync/prefix - Returns file metadata including name, path, size, and last modified date
- Generates S3 URLs for each file
- CORS-enabled for web interface integration
- Handles pagination for large file collections
API Response:
{
"files": [
{
"name": "filename.pdf",
"path": "drivesync/folder/filename.pdf",
"size": "1.2 MB",
"url": "https://bucket.s3.amazonaws.com/path",
"modified": "2024-01-01T12:00:00"
}
],
"total": 1
}Static HTML page that provides a user-friendly interface to search and browse files.
Features:
- Real-time search filtering
- Responsive design
- File count statistics
- Clean, accessible interface
- Deploy
lambda_function.pyas AWS Lambda function with S3 read permissions - Set up API Gateway to trigger the Lambda function
- Host
index.htmlon any web server or S3 static website - Update the
API_URLinindex.htmlto point to your API Gateway endpoint