Skip to content

mihel512/Simple-Laravel-API

Repository files navigation

Project Setup

Prepare config

First, create the .env file by copying the example file:

cp .env.example .env

Install Dependencies

docker run --rm \
-u "$(id -u):$(id -g)" \
-v "$(pwd):/var/www/html" \
-w /var/www/html \
laravelsail/php83-composer:latest \
composer install --ignore-platform-reqs

Start the Docker Containers

./vendor/bin/sail up -d

Generate Application Key

./vendor/bin/sail artisan key:generate --ansi

Run Database Migrations

./vendor/bin/sail  artisan migrate

Run the Project

Run containers

./vendor/bin/sail up -d

Start the Queue Worker

./vendor/bin/sail  artisan queue:work

Testing

./vendor/bin/sail  artisan test

About

Simple Laravel API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published