A replacement for default server indices, Bootstrap Listr beautifully displays folders and files in the browser. It is built upon the Bootstrap framework and optionally makes use of Bootswatch themes and Font Awesome icons.
Watch a live demo!
Download the latest release or clone the repository.
The simplest way is to use the default configuration. Copy the dist
-folder to your webserver, then place all files that should be accessible in the browser go into the _public
folder. Point your browser to the dist
-folder rather than the files and folder inside _public
. If you run 403 or 404 errors, please refer to the FAQ.
Gulp tasks are used to configure and build your application. You can install Gulp globally using npm install gulp -g
.
You can now run the default task gulp
to set up the application. On first run, this will guide you through the installation process, after that it will only upgrade the codebase. To force a clean installation, you can use gulp setup-clean
.
Please visit the project wiki for details.
Instead of running your dependencies locally, you can make use of various content delivery networks (CDN). Initialize your application using gulp init
and set dependencies
to cdn
in your config.json
. You can then specify your preferred CDNs (and all other preferences) in this file as well (see below for details!)
Deploy the entire dist/
folder to your server. All files that should be accessible in the browser go into the _public
folder (you can change the folder in the config). Depending on your Apache settings, you might have to uncomment the RewriteBase
setting in the .htaccess
file and maybe add parent folder name right after the slash.
You can configure a number of settings in the file config.json
:
- Optional columns for size modified date
- Document icons
- File viewer for images, videos, audio, source code and HTML
- Search box to filter results
- Column sorting
- Responsive tables
- List of ignored files
- Default location for JavaScript libraries and style sheets
- Syntax highlighting in file viewer
- Save to Dropbox
- Share buttons
- Google Analytics
- Language
Please visit the project wiki for details.
- Fork the repository
- Make your changes
- Send a pull request with your changes
This project is built upon—or includes—code from the following people:
- Greg Johnson - PHPDL lite [Internet Archive]
- Na Wong - Listr
Contributors:
- @melalj - subfolder support
- @Zerquix18 - security fixes
The MIT License (MIT)
Copyright (c) 2014 Jan T. Sott
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
You are welcome support this project using Flattr or Bitcoin 17CXJuPsmhuTzFV2k4RKYwpEHVjskJktRd