Skip to content

Varshith-Yadav/DevOps

Repository files navigation

Node.js Hello World Server

This is a simple Node.js server that serves a "Hello World" message. It also includes a basic HTML page and CSS styling.

Table of Contents


Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js (v18 or higher)
  • npm (comes with Node.js)
  • Docker (optional, for containerization)

Local Setup

  1. Clone the repository:
    git clone <repository-url>
    cd learn-1
  2. Install dependencies:
    npm install

Running the Server

Start the server with:

node server.js

Access your application at:


Running Tests

Run the test suite with:

npm test

Docker Setup

You can also run this project using Docker:

docker-compose up

Access the application:


Project Structure

learn-1/
├── public/               # Static files (HTML, CSS)
│   ├── index.html
│   ├── styles.css
├── server.js             # Node.js server
├── server.test.js        # Unit tests
├── package.json          # Project dependencies and scripts
├── package-lock.json     # Lock file for dependencies
├── Dockerfile            # Docker configuration
├── README.md             # Project documentation

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors