pedrodalvy / laravel-api-boilerplate

This is a Laravel Boilerplate to create a RESTful API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel Api Boilerplate

This is a Laravel Boilerplate to create a RESTful API.

Getting Started

Just click on Use this template GitHub button to create a new project based on this template.

Checklist (without Kool)

When you use this template, try follow the checklist to update your info properly

  • Create .env file: cp .env.example .env
  • Update .env file with your project and docker info
  • Start docker: docker-compose up
  • Generate secret key: artisan jwt:secret
  • Generate database: artisan migrate
  • Generate admin user: artisan db:seed
  • Clean up the README.md file

Using Kool

  • Update .env.example file with your project and docker basic info
  • Setup project: kool run setup
  • Generate secret key: kool run artisan jwt:secret
  • Generate database: kool run artisan migrate
  • Generate admin user: kool run artisan db:seed
  • Clean up the README.md file

More information about Kool can be found in the Kool.dev Documentation

Development

Features

JWT Authentication

Installed and configured JWT authentication.

User ApiResource

Created a User ApiResource to manage users.

Integration with Kool

Integrated with Kool to work with Docker.

TODO

Features to be added:

  • Swagger documentation
  • Unit tests
  • Integration tests

About

This is a Laravel Boilerplate to create a RESTful API.


Languages

Language:PHP 83.8%Language:Blade 15.7%Language:JavaScript 0.5%