Giter Club home page Giter Club logo

express-deployment-aws's Introduction

Express Deployment AWS ๐ŸŒง

Automatically deploy an Express app to AWS in a โœจ serverless-y โœจ kinda way using API Gateway and Lambda. All you have to do is configure some workflows and maybe restructure your code a tiny bit.

Installing ๐Ÿ”Œ

If you follow all of the steps below, you should be able to get this up and running yourself! (better instructions soon ๐Ÿคž)

  1. Create an IAM user with Administrator Access and save these credentials
  2. Move app.listen() to a "dev-only" process ๐Ÿง‘โ€๐Ÿ’ป
  3. Export the Express app module from backend/server.js
  4. Create a workflow file and set your AWS credentials (example soon)
  5. Within the workflow, configure the s3-bucket and stack-name inputs, and set any env variables that your API needs ๐ŸŒณ

Inputs

  • s3-bucket required - the name of the s3 bucket that will store the build artifacts ๐Ÿชฃ
  • stack-name required - the name of the Cloud Formation stack name to use
  • domain - the target domain to deploy the API to. ๐Ÿšจ currently untested

Outputs

  • api-url - this is the URL generated by AWS for your API

Example ๐Ÿง‘โ€๐ŸŽ“

A polished example should come soon. This was tested using this repo, which can hopefully help.

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.