- Clone repository
$ git clone https://github.com/modulr/modulr-api-laravel.git
- Enter folder
$ cd modulr-api-laravel
- Install composer dependencies
~/modulr-api-laravel$ composer install
- Generate APP_KEY
~/modulr-api-laravel$ php artisan key:generate
- Configure .env file
// Add database params
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
- Run migrations
~/modulr-api-laravel$ php artisan migrate
- Run seeders * optional *
NOTE: Seeds create 10 users fake with gravatar
~/modulr-api-laravel$ php artisan db:seed
Authentication
- POST /auth/login
- POST /auth/logout
- POST /auth/register
- GET /auth/user
Password reset
- POST /password/create
- GET /password/find/{token}
- POST /password/reset