Skip to content

app-generator/blog-sample-nodejs-introduction

Repository files navigation

A simple Node.js application that returns Hello World when you browse localhost:3000/api on your local host and returns an attractive web page when you open localhost:3000 in your browser. This Node.js application is also containerized and can be run with single docker command. We shall list both manual and Docker commands to run this application.


Sample Code provided by NodeJS For Beginners - Provided by AppSeed


Running the NodeJS App via Docker

$ docker-compose up --build

Running the NodeJS App manually

  • Clone the repository
  • Open the repository in VS code or your favourite IDE
  • Run npm i
  • Run node server.js

Once all the commands are executed, we should see a pixel-perfect Boostrap 5 Design running in the browser http://localhost:3000:


NodeJS for Beginners - Practical Guide, blog article provided by AppSeed.



Node JS For Beginners - Sample Code provided by AppSeed

About

Node JS For Beginners - Blog Article (With Samples) | AppSeed

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published