Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spicyjack/afb
Browse and search for Infobot factoids from the comfort of your web browser.
https://github.com/spicyjack/afb
Last synced: about 2 months ago
JSON representation
Browse and search for Infobot factoids from the comfort of your web browser.
- Host: GitHub
- URL: https://github.com/spicyjack/afb
- Owner: spicyjack
- Created: 2012-12-06T02:41:52.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-07-14T19:21:00.000Z (about 10 years ago)
- Last Synced: 2024-06-20T18:34:43.431Z (3 months ago)
- Language: Perl
- Size: 883 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# App::Factoid::Browser #
Browse and search for Infobot factoids from the comfort of your web browser.
## What's Here ##
- [Project Notes](https://github.com/spicyjack/afb/blob/master/docs/notes.md)
- Perl [Dancer](https://metacpan.org/module/Dancer) application
- `App-Perl-Dancer/bin/app.pl`
- Dancer web application, creates an instance of Dancer on port 3000 of
`localhost`
- Standalone factoid tool script
- `App-Perl-Dancer/bin/factoid_tool.pl`
- Can display factoid files (`factoid_file.[pag|dir]`)
- Helper scripts
- `scripts/get_factoids.sh`
- Downloads factoids from remote server, creates tarball for re-downloading## Starting the app ##
Change to the `App-Factoid-Browser` directory and issue this command:perl bin/app.pl
You can also specify an environment with:
perl bin/app.pl --environment production
## Changing the layout (view) ##
Edit the file `config.yml`, and set `layout:` to be the name of a file in the
`views/layouts` directorythat contains _Template Toolkit_ markup. This file
will be used as the default page(s) for the app. The `<% content %>` block in
that page will contain the content for whatever page was requested by the
user. _Template Toolkit_ will also read in this page when that tag is
reached, and parse and output the contents of the page.## Licensing ##
This software is released under the terms of the *Perl Artistic License*, a
copy of which can be viewed at http://dev.perl.org/licenses/artistic.html.vim: filetype=markdown tabstop=2 shiftwidth=2