Skip to content

Commit

Permalink
Updates in Wave
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamieljv committed Nov 24, 2021
1 parent 2c1a6dc commit 04f46b7
Show file tree
Hide file tree
Showing 648 changed files with 521 additions and 1,652 deletions.
Empty file modified .do/app.yaml
100644 → 100755
Empty file.
Empty file modified .do/deploy.template.yaml
100644 → 100755
Empty file.
Empty file modified .dockerignore
100644 → 100755
Empty file.
Empty file modified .env.example
100644 → 100755
Empty file.
Empty file modified .gitattributes
100644 → 100755
Empty file.
Empty file modified .github/workflows/tests.yaml
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified Dockerfile
100644 → 100755
Empty file.
Empty file modified LICENSE.md
100644 → 100755
Empty file.
35 changes: 29 additions & 6 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
# Deployment Instructions
# Wat Kan Ik Doen webapp

## Migrating
## Deployment Instructions

### 1. Set up the database

- Create a database and add the connection details to `.env`
- Run migrations with `php artisan migrate`
- Run seeders with `php artisan db:seed`

### 2. Run the server

- Run the server with `php artisan serve`

## Modifying BREAD
Configuration of the Voyager admin panel are saved in database tables. The defaults are seeded by files in `database/seeders`. Any changes need to be kept up to date in these seeders, to ensure easy deployment.

Reference for which seeder file (all in `database/seeders`) contains what:

- `MenuItemsTableSeeder.php` -> Create new menu entries here
- `DataTypesTableSeeder.php` -> Register BREAD for new tables here
- `DataRowsTableSeeder.php` -> Configure the details for every field in said tables
- `PermissionTableSeeder.php` -> Add the BREAD permissions to table

For new tables:

- Create a new seeder file for the table (see below on how to generate this)
- Register the seeder file in `DatabaseSeeder.php`.

### Generate migrations and seeders
- Generate migrations for all tables

`php artisan migrate:generate`
Expand All @@ -9,12 +36,8 @@

`php artisan migrate:generate --tables="my_table"`


## Seeding
- Generate seeders

`php artisan iseed my_table`

- Run seeders

`php artisan db:seed`
Empty file modified SECURITY.md
100644 → 100755
Empty file.
Empty file modified app/Console/Kernel.php
100644 → 100755
Empty file.
Empty file modified app/Event.php
100644 → 100755
Empty file.
Empty file modified app/Exceptions/Handler.php
100644 → 100755
Empty file.
Empty file modified app/Http/Controllers/Auth/ForgotPasswordController.php
100644 → 100755
Empty file.
Empty file modified app/Http/Controllers/Auth/LoginController.php
100644 → 100755
Empty file.
Empty file modified app/Http/Controllers/Auth/RegisterController.php
100644 → 100755
Empty file.
Empty file modified app/Http/Controllers/Auth/ResetPasswordController.php
100644 → 100755
Empty file.
Empty file modified app/Http/Controllers/Controller.php
100644 → 100755
Empty file.
Empty file modified app/Http/Kernel.php
100644 → 100755
Empty file.
Empty file modified app/Http/Livewire/Wave/DeployToDo.php
100644 → 100755
Empty file.
Empty file modified app/Http/Middleware/EncryptCookies.php
100644 → 100755
Empty file.
Empty file modified app/Http/Middleware/HttpsRedirect.php
100644 → 100755
Empty file.
Empty file modified app/Http/Middleware/RedirectIfAuthenticated.php
100644 → 100755
Empty file.
Empty file modified app/Http/Middleware/TrimStrings.php
100644 → 100755
Empty file.
Empty file modified app/Http/Middleware/TrustProxies.php
100644 → 100755
Empty file.
Empty file modified app/Http/Middleware/VerifyCsrfToken.php
100644 → 100755
Empty file.
Empty file modified app/Providers/AppServiceProvider.php
100644 → 100755
Empty file.
Empty file modified app/Providers/AuthServiceProvider.php
100644 → 100755
Empty file.
Empty file modified app/Providers/BroadcastServiceProvider.php
100644 → 100755
Empty file.
Empty file modified app/Providers/EventServiceProvider.php
100644 → 100755
Empty file.
Empty file modified app/Providers/RouteServiceProvider.php
100644 → 100755
Empty file.
Empty file modified app/User.php
100644 → 100755
Empty file.
Empty file modified artisan
100644 → 100755
Empty file.
Empty file modified bootstrap/app.php
100644 → 100755
Empty file.
Empty file modified composer.json
100644 → 100755
Empty file.
Loading

0 comments on commit 04f46b7

Please sign in to comment.