@ What is a REST API?
Overview
A REST API (also known as RESTful API) is an application programming interface (API or web API) that conforms to the constraints of REST architectural style and allows for interaction with RESTful web services. REST stands for representational state transfer and was created by computer scientist Roy Fielding.
This project create for saving development. anyone can use develop Restfull API using this repo
- Docker container V-3.3
- Laravel V-8
- PHP V-8
- MySql v- 8.0.29
- PhpMyAdmin
- Redis for caching
Please check your pc docker setup has or not. if you forgot to give setup docker then you should setup docker based on your operating system. Docker official site download.
First of all, you need to clone this project then go to local fonder to run
After enter your folder you may run some command to run laravel project.
- open your terminal and run below command
docker-compose build
docker-compose up -d
- if you want to go docker bash then below command will be help you
docker-compose php bash
you can run here all artisan command:
ex: php artisan migrate, php artisan migrate:status
- Repository design pattern
Authentication system has been develop implement Laravel Sanctum
you will find documentation as wall in the laravel official site
-
Repository design pattern
-
Database creating
This will create a database called laravel_repository. Next we have to add the database credentials to the .env file.
DB_DATABASE=your database name
DB_USERNAME=root
DB_PASSWORD=secret
After you have changed the .env file we have to clear the configuration cache
php artisan config:clear
If you want to clear all cache then you should try below command
php artisan optimize:clear
Run the migration
Now that we have setup the database we can run the migration:
php artisan migrate
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:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
If you don't feel like reading, Laracasts can help. Laracasts contains over 1500 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.
The Laravel framework is open-sourced software licensed under the
Email: habib.cst@gmail.com