Skip to content

DarioG/serverless-typescript-mongodbatlas-aws-tpl

Repository files navigation

Serverles + MongoDB Atlas + typescript + AWS starter kit

Just clone this project and start writing your serverless functions

Requirements

  • Node.js (>= 7.3.0)
  • Serverless
  • Project dependencies (npm install)

Install

  1. Clode/fork this repo
  2. Create an Amazon Web Services account if you do now have one
  3. Sign up for a MongoDB Atlas account if you do not have one, and create a cluster
  4. Once you have your MongoDB Atlas cluster running, copy the URI Connection String and paste into variables.env.sample
  5. Rename this file to variables.env
  6. npm install

Running locally

  • serverless offline start or npm run start -> Compile typescript files, run serverless offline and start watch

Deploy

  • serverless deploy -v -> Deploy all the functions to AWS lambda

Run tests

  • npm run test -> Run mocha

About

Template to start coding your serverless app with typescript, mongodb Atlas and aws

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published