Skip to content

rchard2scout/SimpleLottery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Lottery

This is a simple lottery web application.

This code has been created as a test assignment. It is not meant for public release, but of course you're free to do whatever you want with this. (Also see the license)

What is in here:

  • adding participants
  • persistent participant storage
  • confirmation page
  • picking a winner

What is not in here:

  • removing participants
  • SQL injection prevention (or any other kind of security)
  • error checking

To build and run this, you'll need:

  • sqlite3
  • cgicc
  • lighttpd (or another webserver) with cgi enabled.
  • An sqlite3 database called "lottery.db" in /var/www/cgi-bin/ that's writable by lighttpd (on Debian-based distributions: user www-data). This database has a single table "participants": CREATE TABLE participants(id integer primary key asc, name text, email text);

About

Simple lottery web application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published