https://github.com/tankengine-ish/basic-node.js-express-project
Node.js/Express Pages [personal project]
https://github.com/tankengine-ish/basic-node.js-express-project
Last synced: about 1 year ago
JSON representation
Node.js/Express Pages [personal project]
- Host: GitHub
- URL: https://github.com/tankengine-ish/basic-node.js-express-project
- Owner: TankEngine-ish
- Created: 2023-11-25T21:56:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-30T11:11:55.000Z (over 2 years ago)
- Last Synced: 2023-11-30T23:37:13.344Z (over 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 668 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Basic-Node.js/Express-Page
In my very first Node.js/Express project I created a simple webpage that listens
to port 8080 and serves content from four other very basic html pages.
# How it works:
Use:
```
node index.js
```
to start the server on localhost:8080.
*localhost:8080/about* is a valid page.
*localhost:8080/contact-me* is a valid page.
*localhost:8080/about-me* is non-existing and will throw a 404 error.
# Code Sample:
I made sure I comment out almost every line as this is
uncharted territory for me. It also makes understanding
and remembering everything much easier.
