Skip to content

Commit

Permalink
improved seederfor local development, improved docs and .env for loca…
Browse files Browse the repository at this point in the history
…l development
  • Loading branch information
scammo committed Mar 27, 2024
1 parent 0a75639 commit e5bc5f2
Show file tree
Hide file tree
Showing 4 changed files with 786 additions and 628 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,22 @@ You can see a running version [bewerben.c3fl.de](https://bewerben.c3fl.de). You

The Frontendn is a Vue3 (JavaScript) which is completly standalone.

### Install

`npm i`

### Backend

The Backend is a Laravel application. It uses a sqllite as database.

#### Install

1. Composer install dependecies.
2. Copy .env.example to .env (for local development use .env.example.local.dev)
3. For local development: create `backend/database/database.sqlite`
4. You can create test data by seeding: `php artisan migrate:fresh --seed` (Deletes the database and seeds new Data)

You can use the following Private Key for local development:
```
{"alg":"RSA-OAEP-512","d":"TD6MEN65iy9OFv5Qoz6AXTtaS4DbTuA6wXmMhJMT6M-uiWJ0vjRKOS9xSHkwEg7xWRLIOPmad2oNo9rt7GY6p_bFtYDZ0p4Ug9ji_I-O8TuppRYtROq8uuj8ALSsTFQR2QbCp1QnJOItt0bl05P5LzJ-L3iYwo2RIDbGq5sDRC0Gv0RK0ubUY8OhDpqLh0FUROYcSrT6oKCN4JVs4zD3YIQjOJB6BcbOncn5DT1cnN96sZa9cou7x388ED0DgFTIj564rs7n7iEraoklUTKzT6RPkx5kRmcHpGuMpRfusaWt-Hf1TAP3JFrfg0L__J7SEWnm0n10LyBsqJS1H72oeHP29GWkA80c8XG0g6Quu-DuK8AR-PNhd85qQBgAnSkrUrgWHsIK7nqVX9ljs2ZYmd1k5ZyR9okIDskT6pL1G397O8yMxP3vQo1vqqz8khRm_kIAivqSAPv0GcHlKwycLRio_VJijHWck_NQ6L3gizjDnPNxQSvFtQ92nIiTD17Gz40h5IDWOYNBmui_mKnb08FF_wmm07a9lOnICurdTeMQ-GXVxPB3eRpp9l683zNc7JSpxDbbp21v9es6Y2fc_jiIyn8ICh4QMbY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HbbxrYsUawSO2k8Q","qi":"VAukOsv3nA5P7FALM6S-eRxN23qYQEf70AGT2pbXg51xlLjVHFCczYb8HzFSyZYwV83ECRFldBAnWdWRo7GxCwxiHtnGuXF5UCBPW3bxL8630TvzmIbXwbYtSs5iLLX3m0uceWxtaplSqZNXpm1j9VE0_w2dEu0uOR6KZDVgV6lY_7IcVGtItcMcOc-4DgUObB0djWCBhmQoC4nekz4FV1kJZP0zDMVN1vbvSpoLIW1pUxzNit3_TOjATfxVtFTSrHsVvxqQZwNj1bWZl_5nmGL3z8HYHkDcCR8Uq5iRu3ylxpzBzaCISyQvcYLhhOypHVD8NMyEReQ1_XDV1YQzxw"}
```
58 changes: 58 additions & 0 deletions backend/.env.example.local.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
APP_NAME="Pretty Good Proposal"
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=sqlite
DB_FILE=database.sqlite

BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

MEMCACHED_HOST=127.0.0.1

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=smtp
MAIL_HOST=mailpit
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1

VITE_APP_NAME="${APP_NAME}"
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

JWT_SECRET=DgShc8SKxGUlu5px5PjnMjkTCQVZUsS8ZkW3gEMfwImdbCsQIH6apWtEyYCZlLGp
JWT_ALGO=HS256
Loading

0 comments on commit e5bc5f2

Please sign in to comment.