DONE: enhance UI on admin and voter side, add docker config, fix delete button modal not showing

This commit is contained in:
ISMAIL MASSERAN
2026-04-02 11:59:56 +08:00
parent bed56792e6
commit 4369b079cb
31 changed files with 3044 additions and 1216 deletions
+34
View File
@@ -86,6 +86,40 @@ php artisan serve
# You can now view the system on http://localhost:8000
```
## Docker
This runs the app in **PHP 7.4** + **MySQL 8.0** without changing your Mac's PHP.
```shell
# Start containers (web at http://localhost:8080)
docker compose up -d --build
# Create .env if you haven't yet
cp .env.example .env
# Update these values in .env for Docker:
# DB_HOST=mysql
# DB_PORT=3306
# DB_DATABASE=voting
# DB_USERNAME=voting
# DB_PASSWORD=voting
# Install PHP dependencies
docker compose exec app composer install
# Generate app key
docker compose exec app php artisan key:generate
# Link storage (optional)
docker compose exec app php artisan storage:link
# Migrate + seed
docker compose exec app php artisan migrate:fresh --seed
# Passport keys (if you use Passport)
docker compose exec app php artisan passport:install
```
### Note
The Default user for admin is: