Skip to content

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.

Notifications You must be signed in to change notification settings

mariodiasbatista/laravel-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel rest API

The goal of this project create an optimized Laravel API .

Running the application

First time Setup

git clone https://github.com/mariodiasbatista/laravel-api.git
./etc/bin/php composer install

or

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

  ./etc/bin/php composer install

or

composer install

First Time

sudo APP_PORT={the port you want the site to run}
./vendor/bin/sail up
  • Run the migrations
./vendor/bin/sail artisan migrate

Every New Instance

  • Spin up the application
./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 :

docker-compose down --volumes
sail up --build
  • And again
./vendor/bin/sail artisan migrate
  • Should be Up and running

  • to exit Sail just ctrl+c or

./vendor/bin/sail down

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published