Code Monkey home page Code Monkey logo

pub-sub-client's Introduction

Pub-sub client

Copyright by:

  • Ha Long Do
  • John Wannerkawahara
  • Pavan Karnati
  • Arsalan Ahmed

Demo

demo.mp4

Run your own client

On your machine

To run your own client run the following on a system with docker installed

docker run -d -p 3000:3000 ghcr.io/halo93/pub-sub-client:latest

Visit http://localhost:3000

On AWS ECS Fargate

Using the [Amazon ECS first run wizard][first-run], create an ECS cluster, Use the task definition from file ecs-task.json

โœ… \ Step-by-step Instructions

  1. Go to the AWS Management Console, click Services then select Elastic Container Service under Compute. If you've never used the service before, you'll see a Getting started button which will take you to the first run wizard. If you do not see this button, [navigate to the wizard directly][first-run].

  2. The first page of the wizard outlines configuration details to build our new task definition. Select Custom. Enter the docker image link as ghcr.io/halo93/pub-sub-client:latest Note that the task will run using the FARGATE launch type and it is configured for 0.5GB of RAM and 1/4th of a vCPU. Click Next.

  1. The next page outlines configuration details for our service. By default it will create an app called simple-app-service running a single task in a new security group. Change it to pub-sub-client Note we can optionally create a load balancer here to distribute traffic across tasks in our service. We won't do this here but will later in the workshop. Leave the defaults and click Next.

  2. The last page of the wizard allows us to name our cluster. Enter pub-sub into Cluster name. Click Next.

  3. Review the details of the new task definition, service, and cluster on the next page and click Create.

  4. The first run wizard will create the task definition, service, and cluster and all supporting infrastructure. It will show you its progress as it runs:

    Once complete, click View service.

  5. Click on the Tasks tab to see the tasks running by the service. The task status will transition from PROVISIONING to PENDING to RUNNING as the task is placed within AWS Fargate, the container is pulled and started. Click the refresh button while the task starts. Open the public ip address on port 3000 to access the client.

pub-sub-client's People

Contributors

halo93 avatar pavan-karnati avatar

Watchers

 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.