Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/umermansoor/braindead-express-static-server

A simple static file server using express.js.
https://github.com/umermansoor/braindead-express-static-server

Last synced: 7 days ago
JSON representation

A simple static file server using express.js.

Awesome Lists containing this project

README

        

# braindead-express-static-server

A simple static file server using express.js. The whole purpose of this stupid simple program to is to serve static files from a folder.

## Installation:

If you don't already have express.js installed, then run the following command in the directory where you downloaded the source:

`$ npm install`

This will install the required dependencies, in this case, express.

## Usage:

To use this program, put static
files in the `public/` folder. Then start the server using the following command:

`$ npm start`

By default, the server will start on port `3000`. To fetch your static file, open
your web browser and then do the following:

`http://localhost:3000/static.file.name`

For example:

`http://localhost:3000/index.html`

Distributed under the MIT License. No warranties. Use freely =)