Skip to content

tnnt-devteam/tnnt-clanmgmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THE NOVEMBER NETHACK TOURNAMENT CLAN MANAGEMENT

Adaptation of the /dev/null/nethack Tribute code for The November NetHack Tournament.

ARCHITECTURE

  • Perl Dancer framework
  • SQLite as backend storage

INSTALLATION

Upgrade and configure CPAN.pm to bootstrap local::lib

perl -MCPAN -e 'upgrade CPAN'

Install required Perl modules

perl -MCPAN -e 'install Syntax::Keyword::Try'
perl -MCPAN -e 'install File::Touch'
perl -MCPAN -e 'install App::Cmd::Setup'
perl -MCPAN -e 'install Plack::Middleware::Deflater'
perl -MCPAN -e 'install DBD::SQLite'
perl -MCPAN -e 'install Dancer2'
perl -MCPAN -e 'install Dancer2::Plugin::Database'
perl -MCPAN -e 'install Dancer2::Session::Cookie'

Clone the git repository.

DEPLOYMENT

For testing, you can fire up the application with Plack, just go into the Dancer app directory Devnull-Web and run:

plackup -p 5000 bin/app.psgi

Then just point your browser to http://your_ip:5000/

For production deployment a suitable application web server is needed. start.sh and stop.sh scripts utilizing the Starman web server are provided. The main user-facing webserver needs to be configured as a reverse proxy for the application webserver. Example of Apache 2.4 config:

<Location /tnnt/clanmgmt/>
ProxyPass         http://localhost:5000/
ProxyPassReverse  http://localhost:5000/
ProxyPreserveHost On
</Location>

AUTHOR

You can contact me as Mandevil on FreeNode.

About

The November NetHack Tournament - Clan Management backend for https://www.hardfought.org/tnnt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published