A minimalistic Node.js server with basic routing and static file serving capabilities, built with Express.
To install mini-node-server
, clone this repository and install its dependencies:
git clone <repository-url>
cd mini-node-server
npm install
To start the server, run:
npm start
This will start the server on http://localhost:3000
. The server serves static files from the public
directory and
has a basic API endpoint at /api
.
-
express
: For handling HTTP requests and serving static files. -
morgan
: For HTTP request logging.