Skip to content

Instantly share code, notes, and snippets.

@jiraguha
Last active October 19, 2019 11:01
Show Gist options
  • Save jiraguha/99df9e932c9830800e22f2e60fa8b520 to your computer and use it in GitHub Desktop.
Save jiraguha/99df9e932c9830800e22f2e60fa8b520 to your computer and use it in GitHub Desktop.

Deploy a fullstack js app on aws

Intro

There are many way to do it. Some of them are more efficient that others. Here are some paths to explore.

Fast and dirty: Every thing in on a EC2

  1. Create EC2 instance
  2. ssh in EC2
  3. Install everything (git, node, mongo)
  4. Open the inbound to the world
  5. Create a route53 and link it to you DNS

Usefull link

Clean but long

Front-end: S3 bucket & cloudfront & route53

Backend: AWS Elastic Beanstack

Fast and dirty: Every thing in a AWS Elastic Beanstalk

Use links above

Painless: serverless architecture with Amply

It seems code invasive

npm install -g @aws-amplify/cli
amplify configure
### Then in your project :
amplify init 
amplify add api #this will create your API as AWS Lambda functions exposed through Amazon API Gateway)
amplify add hosting #this will create the Amazon S3 bucket for hosting and the cloudfront distribution)
amplify push #to create all this on your AWS account for you
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment