GeroSalas / aws-lambda-node-ts-graphql-mongo

AWS Lambda (serverless) + NodeJS (TypeScript) + GraphQL + MongoDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample - API

This repository has the major components of the API (core microservice). This repo provides API support for the XXX platform.

Serverless AWS

This code is hosted using AWS Lambdas and deployed using AWS CodePipeline with Serverless Framework.

Installation

  • Install Node.js if it's not already on your local machine (make sure to use v6.10.1)
  • Run npm install to install required modules/packages

Running Locally

CLI

$ npm run sls:dev

VS Code debugger

Go to Debugger > Choose task: 'Serverless offline lambda debugger'

Then open PotsmanApp and send requests (test events directory: /lambda_local/test) to your server running on http://localhost:3000/

Testing

Run UnitTests:

$ npm run test

Technology

About

AWS Lambda (serverless) + NodeJS (TypeScript) + GraphQL + MongoDB


Languages

Language:TypeScript 100.0%