University of Mindanao Tagum College Election System
- Php 8.0.2 or up
- Node.js and Npm
- composer
- MySQL
- XAMPP (Optional) or Docker (Optional)
- Pusher app credentials
Clone the repository and go to umtc-election directory
git clone https://github.com/jedymatt/umtc-election.git
cd umtc-election
Generate .env file
cp .env.development .env
Then, configure the .env file and set your pusher crendentials
Install the composer dependencies
composer install --ignore-platform-reqs
Run this instead when using docker:
docker run --rm \
-u "$(id -u):$(id -g)" \
-v $(pwd):/var/www/html \
-w /var/www/html \
laravelsail/php81-composer:latest \
composer install --ignore-platform-reqs
Then, compile the assets
npm install
npm run dev
Populate the tables and the data to the database
php artisan migrate --seed
Generate app key
php artisan key:generate
Run the application
php artisan serve
Finally, visit http://localhost:8000 to view the site.
Go to http://localhost:8000/admin/login
email: admin@example.com
password: password