Giter VIP home page Giter VIP logo

aws-crud-serverless's Introduction

AWS CRUD Serverless App

This repository contains a simple CRUD (Create, Read, Update, Delete) application deployed using the Serverless framework on AWS. The application allows you to manage user records through a set of API endpoints.

Getting Started

These instructions will help you get a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Node.js and npm AWS Account Serverless CLI

Installing

Clone the repository:

git clone https://github.com/coderRaj07/aws-crud-serverless cd aws-crud-serverless

Install the project dependencies:

npm install

Create a .env file in the root of the project and set the required environment variable:

DB=<your-database-connection-string>

Deployment

To deploy the application to AWS Lambda and API Gateway using Serverless, follow these steps:

Make sure you have the AWS credentials properly configured either through environment variables or AWS CLI.

Deploy the application using Serverless: serverless deploy

This will package and deploy your application to AWS Lambda and API Gateway.

Once the deployment is successful, you will receive a list of endpoints that you can use to interact with the application.

To test this Application

โœ” Service deployed to stack aws-crud-serverless-dev to stage dev (ap-south-1)

Endpoints:

GET - https://6vh5xz3umd.execute-api.ap-south-1.amazonaws.com/ POST - https://6vh5xz3umd.execute-api.ap-south-1.amazonaws.com/users GET - https://6vh5xz3umd.execute-api.ap-south-1.amazonaws.com/users GET - https://6vh5xz3umd.execute-api.ap-south-1.amazonaws.com/users/{email}

Functions in AWS:

api: aws-crud-serverless-dev-api (35 MB) createUser: aws-crud-serverless-dev-createUser (35 MB) getAll: aws-crud-serverless-dev-getAll (35 MB) getUser: aws-crud-serverless-dev-getUser (35 MB)

Functions

The following AWS Lambda functions are included in the deployment:

api - The main API handler. createUser - Handles user creation. getAll - Handles retrieving all users. getUser - Handles retrieving a specific user by email.

Built With

Node.js Serverless Framework AWS Lambda Amazon API Gateway MongoDB

Author

Rajendra Bisoi

aws-crud-serverless's People

Contributors

coderraj07 avatar

Stargazers

 avatar

Watchers

 avatar  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.