braydevkin / serverless-graphql-api

Simple GraphQl API using serverless lambda

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serverless GraphQL API + DynamoDB

This product was created to show my skills with serverless framework using AWS Lambda, DynamoDB and GraphQL

I choose this tech's cause it's a great option to create large faster applications.

  • Serverless framework is used to create functions in cloud.
  • GraphQL is used to create API's and it's bring just necessary data's.
  • DynamoDB is a database no-sql it's 5x faster than others no-sql database as MongoDB for example.
  • Typescript is a super tool to Javascript it's a great option to work with types in Javascript.

What's contain in the project ?
  • Serverless Framework (AWS provider)
  • DynamoDB
  • GraphQL
  • Typescript
  • Docker Compose (Run DynamoDB Locally)

Architecture

diagram

Install dependencies

yarn

Create Dynamo Table locally

DynamoDB Admin provider an graph interface to manage tables

npm install -g dynamo-admin

Docker compose simulate the database in the docker container

docker-compose -f docker-compose.yaml up -d

How to create data in the table

Run project with yarn dev the serverless-offline will to provide the path. With this path just to make request in the Postman or Insomnia

About

Simple GraphQl API using serverless lambda


Languages

Language:TypeScript 100.0%