An open API service indexing awesome lists of open source software.

https://github.com/jedymatt/umtc-election

UMTC Election using TALL stack
https://github.com/jedymatt/umtc-election

Last synced: 3 months ago
JSON representation

UMTC Election using TALL stack

Awesome Lists containing this project

README

        

# UMTC Election

![Development Status Badge](https://img.shields.io/badge/dev%20status-maintenance-blue?style=flat-square)

University of Mindanao Tagum College Election System

## Prerequisites

- Php 8.0.2 or up
- Node.js and Npm
- composer
- MySQL
- XAMPP (Optional) or Docker (Optional)
- [Pusher app credentials](https://pusher.com/)

## Run Locally

Clone the repository and go to umtc-election directory

```shell
git clone https://github.com/jedymatt/umtc-election.git

cd umtc-election
```

Generate .env file

```shell
cp .env.development .env
```

Then, configure the .env file and set your pusher crendentials

Install the composer dependencies

```shell
composer install --ignore-platform-reqs
```

Run this instead when using docker:

```shell
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

```shell
npm install
npm run dev
```

Populate the tables and the data to the database

```shell
php artisan migrate --seed
```

Generate app key

```shell
php artisan key:generate
```

Run the application

```shell
php artisan serve
```

Finally, visit to view the site.

### Login as Admin

Go to

email: `[email protected]`

password: `password`