This is a RESTful API template with Laravel. A good number of elements are configured and put in place to facilitate development instead of starting from scratch, Using JWT Authenticator
After cloning the project, you must use the package manager Composer to install all dependencies.
- Cloning project
git clone https://github.com/bolenge/laravel-template-api.git
- Installation dependencies
composer install
- Rename file .env.example to .env
- Update database and other informations
- Generate app key (If you don't have APP_KEY value in .env)
php artisan key:generate
- JWT token
php artisan jwt:secret
- Run Migrations
php artisan migrate
- Generate Storage link
php artisan storage:link
- Initialize seeds
php artisan db:seed
- Run tests
php artisan test
- Start server
php artisan serve
- e.g : localhost:8000/api/docs
- e.g : localhost:8000