Dockerizing a Hello World Express App and Uploading to GCP Artifact Registry

Our Express app is a very simple API that listens on port 3000. And has a single endpoint of root, which returns a JSON message of Hello World.

Create a new folder named hello-express-app and cd into it.

mkdir hello-express-app && cd hello-express-app

Now that we are inside our project, let's initialize our project with npm, and install express and dotenv package.

npm init -y
npm install express dotenv

Create a file named index.js and paste the below code

Write a comment ...

Vishnu Dileesh

Show your support

Hey there! 👋 I love sharing my coding journey, insights, and tutorials to help fellow developers grow. If you've found my content valuable, consider supporting my work! Your contributions help me keep creating quality content, explore new topics, and share more useful resources with the community. Thanks for your support! ❤️

Write a comment ...