Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/umermansoor/braindead-express-static-server
- Owner: umermansoor
- Created: 2013-06-04T05:20:55.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-06-04T19:00:15.000Z (over 11 years ago)
- Last Synced: 2024-04-15T19:06:02.156Z (8 months ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 =)