https://github.com/mariodiasbatista/laravel-api
This Laravel-powered API is built with RESTful principles, ensuring a clean, consistent, and scalable architecture. Designed for high performance and optimal request-response handling, the API follows industry best practice.
https://github.com/mariodiasbatista/laravel-api
cache enums midleware repository-pattern request-validation restfull-api tdd
Last synced: 3 months ago
JSON representation
This Laravel-powered API is built with RESTful principles, ensuring a clean, consistent, and scalable architecture. Designed for high performance and optimal request-response handling, the API follows industry best practice.
- Host: GitHub
- URL: https://github.com/mariodiasbatista/laravel-api
- Owner: mariodiasbatista
- Created: 2024-03-04T00:47:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-21T00:47:27.000Z (about 1 year ago)
- Last Synced: 2025-02-21T01:36:58.223Z (about 1 year ago)
- Topics: cache, enums, midleware, repository-pattern, request-validation, restfull-api, tdd
- Language: HTML
- Homepage:
- Size: 881 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel rest API
The goal of this project create an optimized Laravel API .
## Running the application
- In the case of not having git in your local follow these steps
https://www.atlassian.com/git/tutorials/install-git
### First time Setup
```bash
git clone https://github.com/mariodiasbatista/laravel-api.git
```
- Copy the `.env.example` to `.env` and edit accordingly
- Pull composer packages
- on the case of not having composer follow these steps
https://www.hostinger.com/tutorials/how-to-install-composer
```bash
./etc/bin/php composer install
```
or
```bash
composer install
```
- Note in case of Ubunto :
- Go an issue with ext-dg depedency
- sudo apt-get update
- php -v (check version to choose the correct php package version in my case 8.3)
- sudo apt-get install php8.3-gd
- Go an issue with ext-zip
- sudo apt-get install php8.3-zip
- And again
```bash
./etc/bin/php composer install
```
or
```bash
composer install
```
### First Time
```bash
sudo APP_PORT={the port you want the site to run}
./vendor/bin/sail up
```
- Run the migrations
```bash
./vendor/bin/sail artisan migrate
```
### Every New Instance
- Spin up the application
```bash
./vendor/bin/sail up
```
- if any issues on website local server plse check the local server port
and also add to your env
APP_PORT=89
- Go to webbrowser and in http:1270.0.1:89 (example) create the public key
- If MySql is returning network issue doe same port being used please
do :
```bash
docker-compose down --volumes
sail up --build
```
- And again
```bash
./vendor/bin/sail artisan migrate
```
- Should be Up and running
- to exit Sail just ctrl+c or
```bash
./vendor/bin/sail down
```