Skip to content

amarjothi/node-hello

Repository files navigation

Node Hello World

Simple node.js app that servers "hello world"

Great for testing simple deployments to the cloud

Run It

npm start

Build the docker file

docker build . -t 702193001748.dkr.ecr.eu-west-2.amazonaws.com/node-repo

docker run -p 49200:3000 -d 702193001748.dkr.ecr.eu-west-2.amazonaws.com/node-repo

docker ps

docker login -u AWS -p $(aws ecr get-login-password --region eu-west-2 --profile=dev) 702193001748.dkr.ecr.eu-west-2.amazonaws.com

docker push 702193001748.dkr.ecr.eu-west-2.amazonaws.com/node-repo

curl http://localhost:49200/

Options for Deployment:

  1. Deploy in your local gitlab, gitlab-runner terraform container, spin up ec2 instance, and do the installation.

  2. github and github actions for deployment, this option deploys the container to Amazon Container registry and runs the workflow pipeline to deploy the application to Amazon Elastic Container Service, each commit to the github repo, causes the container to build and deploy.

  3. Using Amazon App Service.

Following Option 2 for deployment Deployed to repository, repository url
https://github.com/amarjothi/node-hello/blob/main/README.md

About

sample nodejs project for quick cloud deploy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published