rafaelrpinto / serverless-boilerplate

:zap: Starter boilerplate for Node.js serverless functions using Babel, Jest, Flow, Webpack 4, Yarn, Serverless Offline and AirBNB linting.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

serverless License: MIT Dependencies

Overview

Starter boilerplate for Node.js serverless functions with:

  • Babel + Babel Minify + ENV target Node 8.10 (This reduces the required transformations)
  • Source maps support
  • Flow
  • Jest
  • Webpack 4
  • Serverless Offline for local execution
  • AirBnb linting

Requirements

  • Node.js version >= 8.10
  • Yarn

Running locally

yarn start

Deploying

export AWS_PROFILE=myprofile && export AWS_REGION=eu-west-2 && yarn run deploy

Undeploying

export AWS_PROFILE=myprofile && export AWS_REGION=eu-west-2 && yarn run remove

Credits

Based on: https://github.com/shashanktomar/serverless-webpack-babel-boilerplate

About

:zap: Starter boilerplate for Node.js serverless functions using Babel, Jest, Flow, Webpack 4, Yarn, Serverless Offline and AirBNB linting.


Languages

Language:JavaScript 100.0%