Skip to content

For serving files on a server running on the local network. (read-only access)

Notifications You must be signed in to change notification settings

NSU-ACM-SC/LocalFileServer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LocalFileServer

Creates a read only file server to be used for sharing files locally

Screenshot

Imgur

Usage

  • Clone and cd into the directory.
  • Create a directory named files in the root of the directory.
  • Put the files you want to serve in the files directory.
# install dependencies
npm install

# start
npm start

# watch for file changes using nodemon
npm run start-watch

Tests

# run tests
npm run test

# run test watch using nodemon
npm run test-watch

File Listing

Everytime a user hits the endpoint "/", the server will fetch the list of files from files directory and list them in the index view.

File listing is done using utils/file-listing.js

Logging

Server logs every request using morgan in combined format. More information can be found here

License

MIT

About

For serving files on a server running on the local network. (read-only access)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 66.0%
  • HTML 28.7%
  • CSS 5.3%