Thanks to visit codestin.com
Credit goes to github.com

Skip to content

PhilipStevenson/nodejs-html-server

Repository files navigation

Node.js HTML Server

A Node.js server that returns a HTML page with a background image when the / endpoint is called

Prerequisites

  • Docker installed
  • NPM installed

Environment variables

The following environment variables need to be set before the application can be run

export APP_PORT=3000

Running the application

Using NPM

Install dependencies

npm install

Start the server

npm start

Go to the following URL localhost:<APP_PORT> e.g. localhost:3000

Docker 🐳

Build the image and run the container using Docker compose

npm run docker

Go to the following URL localhost:<APP_PORT> e.g. localhost:3000

Running the unit tests

npm test

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors