All Projects → vanister → Contacts_api

vanister / Contacts_api

Licence: mit
Serverless RESTful API with AWS Lambda, API Gateway and DynamoDB

Programming Languages

javascript
184084 projects - #8 most used programming language
es6
455 projects

Projects that are alternatives of or similar to Contacts api

Archive aws Lambda Go Net
Network I/O interface for AWS Lambda Go runtime.
Stars: ✭ 151 (+128.79%)
Mutual labels:  aws, serverless, aws-lambda, apigateway
Graphql Serverless
Sample project to guide the use of GraphQL and Serverless Architecture.
Stars: ✭ 28 (-57.58%)
Mutual labels:  aws, serverless, aws-lambda, dynamodb
Dialetus Service
API to Informal dictionary for the idiomatic expressions that each Brazilian region It has
Stars: ✭ 202 (+206.06%)
Mutual labels:  aws, serverless, aws-lambda, dynamodb
Lambda Refarch Webapp
The Web Application reference architecture is a general-purpose, event-driven, web application back-end that uses AWS Lambda, Amazon API Gateway for its business logic. It also uses Amazon DynamoDB as its database and Amazon Cognito for user management. All static content is hosted using AWS Amplify Console.
Stars: ✭ 1,208 (+1730.3%)
Mutual labels:  aws, serverless, aws-lambda, dynamodb
Dazn Lambda Powertools
Powertools (logger, HTTP client, AWS clients, middlewares, patterns) for Lambda functions.
Stars: ✭ 501 (+659.09%)
Mutual labels:  aws, serverless, dynamodb, apigateway
Aws Lambda Dotnet
Libraries, samples and tools to help .NET Core developers develop AWS Lambda functions.
Stars: ✭ 945 (+1331.82%)
Mutual labels:  aws, serverless, aws-lambda
Serverless Plugin Stackstorm
Plugin for serverless framework to run ready to use actions from StackStorm Exchange as AWS Lambda.
Stars: ✭ 28 (-57.58%)
Mutual labels:  aws, serverless, aws-lambda
Lambda Packs
Precompiled packages for AWS Lambda
Stars: ✭ 997 (+1410.61%)
Mutual labels:  aws, serverless, aws-lambda
Aws Testing Library
Chai (https://chaijs.com) and Jest (https://jestjs.io/) assertions for testing services built with aws
Stars: ✭ 52 (-21.21%)
Mutual labels:  aws, serverless, dynamodb
Cloudmagick
CloudMagick is a serverless application which provides a dynamic image transformation like the small light module of apache2
Stars: ✭ 11 (-83.33%)
Mutual labels:  aws, serverless, aws-lambda
Chalice
Python Serverless Microframework for AWS
Stars: ✭ 8,513 (+12798.48%)
Mutual labels:  aws, serverless, aws-lambda
Apex
Old apex/apex
Stars: ✭ 20 (-69.7%)
Mutual labels:  aws, serverless, aws-lambda
Workshop Donkeytracker
Workshop to build a serverless tracking application for your mobile device with an AWS backend
Stars: ✭ 27 (-59.09%)
Mutual labels:  aws, serverless, dynamodb
Aws Auto Terminate Idle Emr
AWS Auto Terminate Idle AWS EMR Clusters Framework is an AWS based solution using AWS CloudWatch and AWS Lambda using a Python script that is using Boto3 to terminate AWS EMR clusters that have been idle for a specified period of time.
Stars: ✭ 21 (-68.18%)
Mutual labels:  aws, serverless, aws-lambda
Step Functions Demo
This is a demo project, created as a part of the blog post. The project uses serverless for deployments.
Stars: ✭ 15 (-77.27%)
Mutual labels:  aws, serverless, aws-lambda
Lambdify
AWS Lambda automation and integration for Python.
Stars: ✭ 48 (-27.27%)
Mutual labels:  aws, serverless, aws-lambda
Serverless Es Logs
A Serverless plugin to transport logs to ElasticSearch
Stars: ✭ 51 (-22.73%)
Mutual labels:  aws, serverless, aws-lambda
Aws Serverless Java Container
A Java wrapper to run Spring, Jersey, Spark, and other apps inside AWS Lambda.
Stars: ✭ 1,054 (+1496.97%)
Mutual labels:  aws, serverless, aws-lambda
Serverless Export Env
Serverless plugin to export environment variables into a .env file
Stars: ✭ 51 (-22.73%)
Mutual labels:  aws, serverless, aws-lambda
Up
Up focuses on deploying "vanilla" HTTP servers so there's nothing new to learn, just develop with your favorite existing frameworks such as Express, Koa, Django, Golang net/http or others.
Stars: ✭ 8,439 (+12686.36%)
Mutual labels:  aws, serverless, aws-lambda

Contacts API

Source for the article: Build a RESTful API using AWS Lambda, API Gateway, DynamoDB and the Serverless Framework

Setup

NOTE: If you have Docker installed, instead of installing Java and downloading the DynamoDb-Local jar file to run, you can run docker-compose up -d localstack command against the docker-compose.yml file in this project to set up DynamoDb running in a LocalStack container with persisted data turned on.


Download the DynamoDb-Local jar file for your system here.

  • Extract the jar file to the root of this repository (the parent of this project folder) under the name: dynamodb_local.

Create a .env file at the root of the project and add in your own values for these enviornment variables.

  • AWS_ENDPOINT='http://localhost:8000/' # or http://localhost:4566
  • AWS_REGION='localhost'
  • AWS_ACCESS_KEY_ID='fake-access-key'
  • AWS_SECRET_ACCESS_KEY='fake-secret-key'

IMPORTANT: DO NOT COMMIT THE .env FILE!!!

Running

DynamoDB Local

  • Open a terminal at the the folder where you extracted the jar file (Setup section).
    • Run: java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb to start it on the default port: 8000.
    • Open a browser at: http://localhost:8000/shell to interact with DynamoDB through the interactive shell.

...Or with LocalStack Docker container

  • Run docker-compose up -d localstack
  • If you already run the docker-compose.yml file and didn't teardown the container, start it again with, docker-compose start.

Lambda Functions

  • Run npm run seed to seed some test data.
  • Run npm start to start the functions locally.

Test by trying to hit an Api endpoint.

  • curl -i localhost:3000/contacts
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].