Giter Club home page Giter Club logo

serverless-contact-form's Introduction

Serverless-Contact-Form

a serverless contact form using AWS Lambda, API Gateway, and DynamoDB.

Serverless Contact Form

Overview

This project is about creating a serverless contact form using AWS Lambda, API Gateway, and DynamoDB. When a user submits the form, the data is stored in DynamoDB. This project serves as an introduction to serverless architecture and basic API creation.

Project Structure

  • lambda_function.py: AWS Lambda function code handling the form submission.
  • template.yaml: AWS Serverless Application Model (SAM) template defining resources including Lambda, API Gateway, and DynamoDB.
  • web/: Simple HTML and JavaScript files for the contact form.

Prerequisites

  1. AWS Account: Ensure you have an AWS account. If not, create one here.

  2. AWS CLI and SAM CLI: Install the AWS Command Line Interface (CLI) and AWS Serverless Application Model (SAM) CLI. Instructions can be found here.

How to Use

  1. Clone the Repository:

    git clone https://github.com/yourusername/serverless-contact-form.git
    cd serverless-contact-form
  2. Deploy the Application:

    • Deploy the serverless application using SAM CLI.
      sam deploy --guided
    • Follow the prompts to configure the deployment, including AWS region, stack name, and other parameters.
  3. Access the Contact Form:

    • Once the deployment is complete, the SAM CLI will provide the API Gateway endpoint URL.
    • Open the provided URL in a web browser to access the serverless contact form.
  4. Submit a Form:

    • Fill out the contact form and submit it.
    • The submitted data will be stored in DynamoDB.

Customization

Feel free to customize the project by modifying the Lambda function code, HTML, or JavaScript files in the web/ directory to match your specific requirements for the contact form.

Learnings

  • Create a serverless application using AWS Lambda, API Gateway, and DynamoDB.
  • Understand the basics of AWS Serverless Application Model (SAM).
  • Gain hands-on experience with serverless architecture.
  • Learn how to create a simple API using API Gateway.

serverless-contact-form's People

Contributors

vasanthabalaji01 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.