Giter Club home page Giter Club logo

aws-lambda-stateful-express-boilerplate's Introduction

Dependencies NPM Downloads NPM version Open Source Love retire

Overview

Boilerplate for a stateful Express.js application running on AWS Lambda using:

  • Claudia.js to deploy/manage AWS assets
  • Babel to transpile code from es2017
  • Webpack to bundle static files
  • AirBnb eslint rules for code styling
  • DynamoDB for session synchronization (or with mozilla's client-session)
  • csurf for protection against CSRF
  • Helmet.js to prevent several attack vectors
  • Handlebars for server-side templating
  • Local development with dynamodb_local
  • Yarn for dependency management

If you are loking for a native serverless boilerplate check this project.

Running locally

Start a local DynamoDB on port 8000 as described here or as a Docker container. Then run:

yarn start

Then access the application on https://localhost:8443.

Deploying to AWS

Setup AWS cli as described here.

Then run:

REGION=eu-west-2 PROFILE=myProfile yarn run deploy

Don't forget to add a trailing '/' on the lambda URL if you are not using a custom domain, otherwise relative paths won't work.

Updating a deployed app

PROFILE=myProfile yarn run update

Destroying/undeploying the app

PROFILE=myProfile yarn run destroy

aws-lambda-stateful-express-boilerplate's People

Contributors

rafaelrpinto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.