Code Monkey home page Code Monkey logo

cloud-server's Introduction

Lab 16: AWS Cloud Servers

Deploy a Node.js server to AWS EC2

Author: Jason Dormier

Link to GitHub repository

Deployed Links

Creating an application with the Elastic Beanstalk GUI

  • Ensure repo has server setup but has no database
  • PORT is set in .env file
  • Choose NodeJS as your platform
  • Create and upload a .zip file with your application source code
    • Do not include node_modules or package-lock.json

This will create your application and environment in one step, giving you a full GUI from where you can manage the app

GUI

Creating an application using the command line only

First, ensure that you've installed the aws cli and the aws eb command line utilities.

  1. eb init - Initializes your folder as an Elastic Beanstal application
    • Choose your region (us-west-2)
    • Choose [Create new Application]
      • Note: If you already have an application, you could also choose that to connect
    • Answer the other questions as appropriate
      • Choose Node.js at the correct version
  2. eb create my-environment-name - Create an "environment" for your app to reside in
  3. eb deploy to deploy your new application to your new environment
    • You'll also use this whenever you make code changes

You can then use some other eb commands to manage your apps

  • eb open to open your app in the browser
  • eb list to get a list of apps
  • eb ssh to ssh (login) to one of your apps
  • eb health to get a health check on your environments

cloud-server's People

Contributors

jasondormier 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.