Code Monkey home page Code Monkey logo

nodejs-aws-workshop's Introduction

Deploying Node.js on AWS

As a developer you are probably already familiar with how to build and run an application on your local machine:

small localhost

But the next step is packaging your application up and running it on a server, or even a whole fleet of servers, and managing this can be challenging:

large deployment

This workshop will help you take the same sample app from localhost to deployed on AWS multiple times, using a variety of different deployment mechanisms:

For this workshop the sample application code is written in Node.js but the same deployment mechanisms can be applied to other runtime languages.

Sample Application

The sample app is a simple REST API for an Adventure Time fan website. The API provides endpoints for consuming structured data about Adventure Time characters and locations.

You can view an example of the raw data here

The external HTTP interface of the API has a basic spec:

  • GET /api/ - A simple welcome message
  • GET /api/characters - A list of all characters
  • GET /api/characters/:id - Fetch a specific character by ID
  • GET /api/locations - A list of all locations
  • GET /api/locations/:id - Fetch a specific location by ID
  • GET /api/characters/by-location/:locationId - Fetch all characters at a specific location
  • GET /api/characters/by-gender/:gender - Fetch all characters of specified gender
  • GET /api/characters/by-species/:species - Fetch all characters of specified species
  • GET /api/characters/by-occupation/:occupation - Fetch all characters that have specified occupation

ย 

Instructions

  1. Create a remote development machine to use for the rest of workshop
  2. Deploy API using Elastic Beanstalk
  3. Deploy API using AWS Lambda
  4. Deploy API using Elastic Container Service
  5. Deploy API using AWS Fargate
  6. Deploy API using Kubernetes with kops

If you are running at home or on your own personal dev machine you technically don't have to use the remote development machine from step #1 and could instead choose to setup the dev environment on your own machine. This workshop encourages the use of a remote dev machine to avoid variations in personal devices when giving the workshop to many attendees, and additionally to move the burden of package downloads and container uploads onto an AWS internet connection instead of the local wifi connection at the workshop venue.

You will notice throughout this workshop that the instructions tend to focus on how to deploy architectures using infrastructure as code. So you will see a lot of commands that files from a recipes folder, for example. You should definitely check out the contents of these "recipes" to see more details about what is being deployed, and how it is configured.

nodejs-aws-workshop's People

Contributors

nathanpeck avatar

Watchers

Tuan Anh Tran avatar James Cloos avatar  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.