Skip to content

This is an assessment for Pay4Me.app to build a crud application using filament, with some unit tests and documentation to be done using Laravel Scribe

Notifications You must be signed in to change notification settings

doobie-droid/product-management-app

Repository files navigation

Product Management App

Submission for Pay4me assessment, includes CRUD application via FilamentPHP, Testing with PestPHP and doc generation with Laravel Scribe

The app has been hosted https://pay4me.laravel.cloud
You can visit the admin panel here

LOGIN DETAILS

User Type Email Password
Admin admin@example.com password
Non-Admin user@example.com password

LOCAL SETUP

  1. clone repository
  2. copy .env.example file to .env and also to .env.testing file. Go to Configuration to set DB details
cp .env.example .env && cp .env.example .env.testing
  1. Download Dependencies
composer install
  1. Set encryption key
php artisan key:generate
  1. Perform migrations and seed database and migrate db for testing database
php artisan migrate --seed && php artisan migrate  --env=testing

DOCUMENTATION

  1. To generate the documentation, you can run
php artisan scribe:generate
  1. You can visit the documentation at /docs

TESTING

  1. After setting up, you can run the tests by running:
php artisan test
  1. To see code coverage for the tests, install xdebug and then run
php artisan test --coverage

configuration

Please modify these values in the .env file.

  • DB_DATABASE=product_db
  • DB_PASSWORD=**** (Put your password here, leave blank if your mysql root uses no password)

Please modify these values in the .env.testing file.

  • DB_DATABASE=product_db_testing
  • DB_PASSWORD=**** (Put your password here, leave blank if your mysql root uses no password)

About

This is an assessment for Pay4Me.app to build a crud application using filament, with some unit tests and documentation to be done using Laravel Scribe

Topics

Resources

Stars

Watchers

Forks