medilies / didata_coding_challenge

graphs in Laravel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:PHP 85.2%Language:Blade 13.8%Language:Shell 0.8%Language:JavaScript 0.2%