DONE: enhance UI on admin and voter side, add docker config, fix delete button modal not showing
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user