|
1 | | -<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p> |
| 1 | +<div align="center"> |
| 2 | + <h2><b>🕹️🕹️ Laravel API Boilerplate🕹️🕹️</b></h2> |
| 3 | + <br/> |
| 4 | +</div> |
2 | 5 |
|
3 | | -<p align="center"> |
4 | | -<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a> |
5 | | -<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a> |
6 | | -<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a> |
7 | | -<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a> |
8 | | -</p> |
| 6 | +<a name="readme-top"></a> |
9 | 7 |
|
10 | | -## About Laravel |
| 8 | +<!-- TABLE OF CONTENTS --> |
11 | 9 |
|
12 | | -Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: |
| 10 | +# 📗 Table of Contents |
13 | 11 |
|
14 | | -- [Simple, fast routing engine](https://laravel.com/docs/routing). |
15 | | -- [Powerful dependency injection container](https://laravel.com/docs/container). |
16 | | -- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. |
17 | | -- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). |
18 | | -- Database agnostic [schema migrations](https://laravel.com/docs/migrations). |
19 | | -- [Robust background job processing](https://laravel.com/docs/queues). |
20 | | -- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). |
| 12 | +- [📖 About the Project](#about-project) |
| 13 | + - [🛠 Built With](#built-with) |
| 14 | + - [Tech Stack](#tech-stack) |
| 15 | + - [🚀 Links](#api-docs) |
| 16 | + - [Features](#features) |
| 17 | +- [💻 Getting Started](#getting-started) |
| 18 | + - [Setup](#setup) |
| 19 | + - [Prerequisites](#prerequisites) |
| 20 | + - [Usage](#usage) |
| 21 | +- [🤝 Contributing](#contributing) |
21 | 22 |
|
22 | | -Laravel is accessible, powerful, and provides tools required for large, robust applications. |
| 23 | +<!-- PROJECT DESCRIPTION --> |
23 | 24 |
|
24 | | -## Learning Laravel |
| 25 | +# 📖 API Boilerplate <a name="about-project"></a> |
25 | 26 |
|
26 | | -Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. |
| 27 | +**[Idara API]** is a boilerplate for building API applications using Laravel 11, incorporating Domain-Driven Design (DDD), role-based authentication, and various other features. |
27 | 28 |
|
28 | | -You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch. |
| 29 | +### Tech Stack <a name="tech-stack"></a> |
29 | 30 |
|
30 | | -If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. |
| 31 | +- <a href="https://www.php.net/">PHP</a> |
| 32 | +- <a href="https://laravel.com/">Laravel</a> |
31 | 33 |
|
32 | | -## Laravel Sponsors |
| 34 | +<p align="right">(<a href="#readme-top">back to top</a>)</p> |
33 | 35 |
|
34 | | -We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com). |
| 36 | +<!-- Link to Api Documentation --> |
35 | 37 |
|
36 | | -### Premium Partners |
| 38 | +## 🚀 Links <a name="api-docs"></a> |
37 | 39 |
|
38 | | -- **[Vehikl](https://vehikl.com/)** |
39 | | -- **[Tighten Co.](https://tighten.co)** |
40 | | -- **[WebReinvent](https://webreinvent.com/)** |
41 | | -- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** |
42 | | -- **[64 Robots](https://64robots.com)** |
43 | | -- **[Curotec](https://www.curotec.com/services/technologies/laravel/)** |
44 | | -- **[Cyber-Duck](https://cyber-duck.co.uk)** |
45 | | -- **[DevSquad](https://devsquad.com/hire-laravel-developers)** |
46 | | -- **[Jump24](https://jump24.co.uk)** |
47 | | -- **[Redberry](https://redberry.international/laravel/)** |
48 | | -- **[Active Logic](https://activelogic.com)** |
49 | | -- **[byte5](https://byte5.de)** |
50 | | -- **[OP.GG](https://op.gg)** |
| 40 | +To access the documentation goto the below link |
51 | 41 |
|
52 | | -## Contributing |
| 42 | +- Link to api routes |
| 43 | +``` |
| 44 | +http://localhost:8000/v1 |
| 45 | +``` |
| 46 | +- Link to documentation |
| 47 | +``` |
| 48 | +http://localhost:8000/v1/documentation |
| 49 | +``` |
53 | 50 |
|
54 | | -Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). |
| 51 | +<br/> |
55 | 52 |
|
56 | | -## Code of Conduct |
| 53 | +<p align="right">(<a href="#readme-top">back to top</a>)</p> |
57 | 54 |
|
58 | | -In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). |
| 55 | +<!-- GETTING STARTED --> |
59 | 56 |
|
60 | | -## Security Vulnerabilities |
| 57 | +## 💻 Getting Started <a name="getting-started"></a> |
61 | 58 |
|
62 | | -If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [[email protected]](mailto:[email protected]). All security vulnerabilities will be promptly addressed. |
| 59 | +To get a local copy up and running, follow these steps. |
63 | 60 |
|
64 | | -## License |
| 61 | +### Prerequisites |
65 | 62 |
|
66 | | -The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). |
| 63 | +In order to run this boilerplate, you need: |
| 64 | + |
| 65 | +1. PHP ^8.2 <br> |
| 66 | + use the following link to setup `PHP` if you dont have it already installed on your computer |
| 67 | +<p align="left">(<a href="https://www.php.net/manual/en/install.php">install PHP</a>)</p> |
| 68 | + |
| 69 | +2. Composer <br> |
| 70 | + use the following link to Download `Composer` if you dont have it already installed on your computer |
| 71 | +<p align="left">(<a href="https://getcomposer.org/download/">install Composer</a>)</p> |
| 72 | + |
| 73 | +## Install |
| 74 | + |
| 75 | +``` |
| 76 | +composer create-project mrprotocoll/laravel-api-boilerplate my-api |
| 77 | +``` |
| 78 | + |
| 79 | +Install dependencies: |
| 80 | + |
| 81 | +``` |
| 82 | +composer install |
| 83 | +``` |
| 84 | + |
| 85 | +## Setup |
| 86 | + |
| 87 | + |
| 88 | +create .env file, change using the .env.example file and update the Database, Google Oauth (optional), and Email credentials. |
| 89 | +``` |
| 90 | +cp .env.example .env |
| 91 | +``` |
| 92 | + |
| 93 | +Generate keys, Run the migration and seed roles: |
| 94 | + |
| 95 | +``` |
| 96 | +php artisan key:generate |
| 97 | +php artisan migrate --seed |
| 98 | +``` |
| 99 | + |
| 100 | +### Usage |
| 101 | + |
| 102 | +The following command can be used to run the application. |
| 103 | + |
| 104 | +```sh |
| 105 | + php artisan serve |
| 106 | +``` |
| 107 | + |
| 108 | +<p align="right">(<a href="#readme-top">back to top</a>)</p> |
0 commit comments