Documentation at http://docs.rexback.apiary.io/
Fill out the database info in the /.env file.
$ php artisan tinker
>>> App\User::create(["name" => "Ryan Cole", "email" => "[email protected]", "password" => password_hash(md5("yourpassword"), PASSWORD_BCRYPT)]);
Make sure
DB::statement('SET FOREIGN_KEY_CHECKS=0;');
and
DB::statement('SET FOREIGN_KEY_CHECKS=1;');
are UNCOMMENTED in \database\seeds\DatabaseSeeder.php.
Run
$ php artisan migrate:refresh --seed
If running cross domain uncomment the headers in the api.php file.
$ php artisan serve --port {port number}
Make sure
DB::statement('SET FOREIGN_KEY_CHECKS=0;');
and
DB::statement('SET FOREIGN_KEY_CHECKS=1;');
are COMMENTED in \database\seeds\DatabaseSeeder.php. Also make sure headers are commented out in your api.php file.
Run
$ composer test