A simple e-voting system written in PHP using the Model View Controller (MVC) pattern.
- Login with email address
- Vote for candidates
- Upload image
- View election results
Gacosca requires PHP v8.0+ to run.
Install the dependencies:
cd gacosca
composer install
Set the database parameters for the project in the config.php file
<?php
...
define('DB_HOST', '127.0.0.1');
define('DB_USER', 'root');
define('DB_PASS', '');
define('DB_NAME', 'gascosa');
Note: An existing database is required for this project to work properly.
Start your development server. Navigate to this address in your browser depending on your development server to install the required tables in your database:
127.0.0.1:8000/gacosca/install
or
locahost/gacosca/install
Run the project:
locahost/gacosca/
Note: The
gacosca/
in the url points to the value of URL_SUBFOLDER in the config.php file.
<?php
...
define('URL_SUBFOLDER', 'gascosa');
...
You will have to add the email addresses manually to the database to be able to login. You can create a page to register email addresses.
MIT
Free Software, Hell Yeah!