Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 776 Bytes

README.md

File metadata and controls

67 lines (45 loc) · 776 Bytes

Didata Coding Challenge

Digraphs in Laravel/Eloquent

example

DB

db

Setup

git clone https://github.com/medilies/didata_coding_challenge
cd didata_coding_challenge
composer install
 cp .\.env.example .\.env
  • create a database and fill its credentials in .env
php artisan key:generate
php artisan migrate

Commands

Create a random graph with nodes and random relations

php artisan graph:gen --nbNodes=<int>

Display a graph stats

php artisan graph:stats --gid=<int>

Delete all empty graphs

php artisan graph:clear

Testing

php artisan test
php artisan migrate:fresh --seed