Skip to content

merajcode5/Serverless-Dictionary-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌐 Serverless Dictionary API using AWS

Project link- http://serverless-dictionary-frontend-meraj.s3-website.ap-south-1.amazonaws.com

A fully serverless, scalable, and cost-efficient dictionary lookup service built using AWS Lambda, API Gateway, DynamoDB, S3, and optionally CloudFront.

This project demonstrates real-world cloud skills, modern API development, and serverless best practices β€” ideal for cloud engineering, AWS, DevOps, and backend roles.

πŸš€ Features

πŸ” Word Lookup API using a Lambda function (Python)

🌐 Serverless API Endpoint via API Gateway (HTTP API)

πŸ“¦ External Dictionary API Integration (api.dictionaryapi.dev)

πŸ“ Search History Storage (DynamoDB)

🎨 Frontend Web App (HTML + JS hosted on S3, optionally through CloudFront CDN)

♻️ Fully Serverless & Auto-scaling

πŸ’° 100% Free-Tier Friendly

Screenshot 2025-11-25 072736

πŸ“ Project Structure

Serverless-Dictionary-API/ β”‚ β”œβ”€β”€ lambda/ β”‚ β”œβ”€β”€ lambda_function.py β”‚ β”œβ”€β”€ requirements.txt β”‚ └── dependencies (requests, urllib3, etc.) β”‚ β”œβ”€β”€ frontend/ β”‚ └── index.html β”‚ β”œβ”€β”€ architecture-diagram/ β”‚ └── (ASCII / PNG / docs) β”‚ └── README.md

🧠 How It Works

  1. User types a word in the frontend UI (hosted on S3).

  2. Frontend calls your API endpoint: https://.execute-api..amazonaws.com/lookup?word=hello

  3. API Gateway triggers Lambda.

  4. Lambda requests meaning from DictionaryAPI.dev using Python requests.

  5. Lambda returns formatted JSON to the frontend.

πŸ› οΈ AWS Services Used Service Purpose AWS Lambda (Python) Core backend logic API Gateway (HTTP API) REST endpoint DynamoDB Optional search history storage S3 Static Hosting Frontend hosting CloudFront Optional CDN for performance & HTTPS CloudWatch Logs Monitoring

πŸ“ˆ Improvements & Future Enhancements

Add JWT authentication using Cognito

Track per-user search history

Add caching (API Gateway cache or CloudFront)

Add audio pronunciation playback

Deploy using IaC (AWS SAM / Terraform)

πŸ™Œ Acknowledgements

Dictionary API powered by https://dictionaryapi.dev

Hosted & deployed on AWS Free Tier

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published