/cloud-server

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Lab 16 | Cloud Server | JavaScript 401

Authour: Lydia Minehan-Tubic

Links & Resources

Pull Request

Deployed Site - GUI Deploy

Deployed Site - CLI Deploy

Code Fellows Assignment

Installing EB

Set Up & Dependencies

  • node.js
  • express
  • AWS
  • Elastic Beanstalk

Zip Version

  • Create an AWS account. Make a user and an administrative group with admin privilages. Add your new user to that group
  • Connect that user and account to your computer via your terminal
  • Make a basic express server. Be sure to edit your package.json with the correct start script
  • Zip your files to prepare them for AWS. Removes your node_modules & package-lock.json, then use the following command zip -rp server.zip *

Elastic Beanstalk Version

  • Install Electric Beanstalk: brew install awsebcli
    • Must already have python and aws for this command to work
  • enter eb init
  • Follow the steps, selecting your region, project, and sellect No for Code Commit
  • Enter eb create my-environment-name
  • Enter eb deploy

Technical Requirments

Deploy a simple Node.js server to EC2, using Elastic Beanstalk. Choose a server you’ve built previously.

Task 1:

  • Create a new environment, using Elastic Beanstalk from the AWS Control Panel (GUI)
  • Manually deploy your application to this environment by uploading a .zip file

Task 2:

  • Using the same server, create a new environment using Elastic Beanstalk from your terminal
  • Manually deploy your application to this environment by using eb deploy