N.B. : This project is a joke, only for me to relax. But maybe one day it will become legen... wait for it ...dairy !
Dareyou lets everyone launch fun challenges to his friends or all web users who may bet or directly participate in the challenge. Participants must submit proof that they have completed the challenge, such as a photo or video (which may be hosted on other site).
Referees, randomly chosen, then designate the winners. Winners receive karma points, plus any other rewards specified in the bet / challenge. The losers lose karma points, and may need to perform a task ingratte specified in the challenge.
- Works with PHP 5.3 and MySql 5.1
- Open
config.sample.php
- Modify it according to your MySql server, then rename it as
config.php
. - Load
install.sql
in your database. - Make sure you have write access to cache directory (
c
).
Like this is an exercise, here are the guidelines I set for myself:
- Best practices:
- Complete, concise, public, up-to-date documentation (with phpdoc)
- Follow the coding style standards (with php_cs_fixer)
- DRY code (with phpmd)
- Semantic, responsive, progressively enhanced HTML5
- Cool URLs
- Obsessive minification
- For fun:
- One view to rule them
- No javascript (pure HTML5 on client side)
- No classes
(purely functional
core
and purely procedural controllers)