coldfix / sudoku-swi

Awful static web interface for a sudoku generator

Home Page:http://sudoku.coldfix.de/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sudoku-swi

Lightweight Static Web Interface for sudoku generator, visible on 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:

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:

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

About

Awful static web interface for a sudoku generator

http://sudoku.coldfix.de/

License:Other


Languages

Language:C++ 85.1%Language:JavaScript 6.7%Language:CSS 2.1%Language:PHP 1.8%Language:Makefile 1.6%Language:HTML 1.5%Language:Dockerfile 1.2%