Giter Site home page Giter Site logo

hongweis / eb-node-express-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/eb-node-express-sample

0.0 0.0 0.0 275 KB

Sample Express application for AWS Elastic Beanstalk

License: Apache License 2.0

JavaScript 32.39% CSS 15.28% EJS 52.34%

eb-node-express-sample's Introduction

AWS Elastic Beanstalk Express Sample App with Dynamo

This sample application uses the Express framework and Bootstrap to build a simple, scalable customer signup form that is deployed to AWS Elastic Beanstalk. The application stores data in Amazon DynamoDB and publishes notifications to the Amazon Simple Notification Service (SNS) when a customer fills out the form.

This example cannot be run locally.

You can get started using the following steps:

  1. Install the AWS Elastic Beanstalk Command Line Interface (CLI).
  2. Add policies to the default instance profile to grant the EC2 instances in your environment permission to access DynamoDB and Amazon SNS:
    • Open the Roles page in the IAM console.
    • Choose aws-elasticbeanstalk-ec2-role.
    • On the Permissions tab, choose Attach policies.
    • Select the managed policy for the additional services that your application uses. For this specific example, add AmazonSNSFullAccess and AmazonDynamoDBFullAccess.
    • Choose Attach policy.
  3. Run eb init --platform node.js --region <region> to initialize the folder for use with the CLI. Replace <region> with a region identifier such as us-east-2 (see Regions and Endpoints for a full list of region identifiers).
  4. Run eb create --sample nodejs-example-express-dynamo to begin the creation of a sample application that contains a load-balanced environment with the default settings for the Node.js platform.
  5. Once the environment creation process completes, run eb open to load the sample environment in your browser to verify the deployment has succeeded and is accessible.
  6. Deploy the source in this bundle using eb deploy.
  7. Once the deployment of this source bundle completes, run eb open to interact with the new webpage.
  8. Run eb terminate --all to clean up.

Themes

The code includes several Bootstrap themes from bootswatch.com. You can dynamically change the active theme by setting the THEME environment variable in the Elastic Beanstalk Management Console:

Installed themes include:

eb-node-express-sample's People

Contributors

abhiksingh avatar hacbrown avatar mwunderl avatar banha-serhii 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.