Code Monkey home page Code Monkey logo

devnull-web's Introduction

/DEV/NULL/NETHACK TRIBUTE CLAN MANAGEMENT

This code started as an attempt at reimplementation of /dev/null/nethack's central server code. With the tournament retirement by Krystal, this never came to fruition. Instead, this code was coopted for clan management of the replacement tournament -- /dev/null/nethack Tribute and then the TNNT tournament. The tag 'pre-tribute' marks the last commit before this event.

Note: TNNT got a new scoreboard, so this code is no longer maintained.

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 /devnull/clanmgmt/>
ProxyPass         http://localhost:5000/
ProxyPassReverse  /
ProxyPreserveHost On
</Location>

AUTHOR

You can contact me as Mandevil on FreeNode.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.