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
$ docker-compose up --build
- 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
:
Node JS For Beginners - Sample Code provided by AppSeed