An open API service indexing awesome lists of open source software.

https://github.com/mathdebate09/basic-informational-site

A simple Node.js server that serves static HTML pages
https://github.com/mathdebate09/basic-informational-site

Last synced: 5 months ago
JSON representation

A simple Node.js server that serves static HTML pages

Awesome Lists containing this project

README

          

# Basic Informational Site

A simple Node.js server that serves static HTML pages

> [Live website](https://99b952fc-bd8b-4aec-a046-779ffe2dc697-00-2f7e2nycml7xr.pike.replit.dev/)

## Features

- Basic HTTP server implementation using Node.js
- Serves static HTML pages
- Custom 404 error page handling
- Simple and clean URL routing
- No external dependencies required
- Easy to understand and modify

## Tools/Languages

[![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge&logo=node.js&logoColor=white)](https://nodejs.org/learn)
![Express.js](https://img.shields.io/badge/express.js-%23404d59.svg?style=for-the-badge&logo=express&logoColor=%2361DAFB)
[![Javascript](https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E)](https://developer.mozilla.org/en-US/docs/Web/JavaScript)
[![HTML](https://img.shields.io/badge/html5-%23E34F26.svg?style=for-the-badge&logo=html5&logoColor=white)](https://developer.mozilla.org/en-US/docs/Web/HTML)
[![Replit](https://img.shields.io/badge/Replit-DD1200?style=for-the-badge&logo=Replit&logoColor=white)](https://docs.replit.com/getting-started/intro-replit)

## Getting started

- Make sure you have [Node 20.xx.x](https://nodejs.org/en/download/package-manager) or higher and [Git](https://git-scm.com/downloads) downloaded

```bash
git clone git@github.com:mathdebate09/basic-informational-site.git
cd basic-informational-site
node index.js
```

## Learning Outcomes

- Implemented a basic Node.js HTTP server from scratch
- Learned about file system operations in Node.js
- Gained experience with async/await patterns in server-side JavaScript
- Understanding of basic URL routing and request handling
- Implemented proper error handling with custom 404 pages
- Experience with serving static HTML files

## Code snippets

- W3Schools: [W3Schools NodeJS Tutorial](https://www.w3schools.com/nodejs/default.asp)