Skip to content

medilies/didata_coding_challenge

Repository files navigation

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

About

graphs in Laravel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages