Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/coldfix/sudoku-swi

Awful static web interface for a sudoku generator
https://github.com/coldfix/sudoku-swi

sudoku-puzzle web-interface

Last synced: 25 days ago
JSON representation

Awful static web interface for a sudoku generator

Awesome Lists containing this project

README

        

sudoku-swi
----------

Lightweight Static Web Interface for sudoku generator, visible on
sudoku.coldfix.de_.

.. _sudoku.coldfix.de: http://sudoku.coldfix.de

The thing itself isn't really useful, but I had already coded the sudoku
generator a while back, so it wasn't much effort to provide a web-interface.
This is coded in illegably ugly PHP… shame on me. I am now setting the code
free, so you can judge for yourself.

Installation
~~~~~~~~~~~~

Build the generator:

.. code-block:: bash

git clone https://github.com/coldfix/sudoku-swi
cd sudoku-swi
apt-get install base-devel boost-dev
make

Now, serve the ``html/`` folder with CGI enabled. For example, use lighttpd
to serve on http://localhost:3030:

.. code-block:: bash

apt-get install lighttpd php php-cgi fcgi
lighttpd -Df lighttpd.conf

Docker
------

Build a docker image from source that runs the site using lighttpd::

git clone https://github.com/coldfix/sudoku-swi
cd sudoku-swi
docker build . -t coldfix/sudoku

Or just pull the latest version from Docker Hub::

docker pull coldfix/sudoku

And run the site as follows::

docker run --rm --init -p 3000:3000 --cap-drop=all coldfix/sudoku