Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.
/ bzn Public archive

Group Assessment during block 7 and 8 at Avans University.

Notifications You must be signed in to change notification settings

gillescoolen/bzn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BZN

Running the project

  1. Make sure you have Composer & PHP installed!
  2. Open a terminal in the root folder and run $ composer install and $ npm install.
  3. Copy the .env.example file and name the new file .env.
  4. Make sure the database credentials in your new .env file match your actual credentials.
  5. (on first time running) Run 'php artisan migrate:fresh --seed' to insert default data
  6. Run $ php artisan serve in your terminal.
  7. Run $ npm run hot in another terminal.
  8. Voilà! View the project at http://localhost:8000

Testing the project

Browser tests are located in ~/tests/Browser/.

  1. Copy env file $ cp .env .env.dusk.local and edit DB_DATABASE, DB_USERNAME, DB_PASSWORD
  2. Create a testing database with a testing user according to .env.dusk.local
  3. Build Vue assets:
  4. $ npm run production
  5. Serve the project in testing mode:
  6. $ php artisan serve --env=dusk.local
  7. Running tests:
  8. Running all browser tests: $ php artisan dusk.
  9. Running a specific test: $ php artisan dusk [file] e.g. $ php artisan dusk tests/Browser/MapTest.php

For more information about browser testing, read the Dusk documentation.

Linting the project

$ npm run lint

Common issues

Due to PHP being PHP, there are some common issues we will face which are resolved pretty easily.

  • Target class does not exist.
  1. Run $ composer dump-autoload in your terminal.
  • Generic NPM errors
  1. Remove /node_modules.
  2. Run $ npm ci.
  • Generic Composer errors
  1. Remove /vendor.
  2. Run $ composer install.
  • Running tests: 'Facebook\WebDriver\Exception\SessionNotCreatedException: session not created: Chrome version must be between 70 and 73'
  1. php artisan dusk:chrome-driver 72

About

Group Assessment during block 7 and 8 at Avans University.

Topics

Resources

Stars

Watchers

Forks