Simple CRUD to Latin American Mobile
If you don't want to use Docker, the best way to setup the project is to use Homestead or Laragon.
-
PHP 8.1+
- Clone Project
git clone https://gitlab.com/mauripr26/unhealthy-cards.git
cd unhealthy-cards
- Install dependencies
composer install
- Create .ENV
cp .env.example .env
- Generate app key
php artisan key:generate
- Run migrations
php artisan migrate --seed
- Compile assets
npm run build
- Run application
php artisan serve
Once you have started, application will be accessible in web browser at http://localhost:8000
It is recommended to run all from the WSL.
- Clone Project
git clone https://gitlab.com/mauripr26/unhealthy-cards.git
cd unhealthy-cards
- Download dependencies
docker run --rm \
-u "$(id -u):$(id -g)" \
-v "$(pwd):/var/www/html" \
-w /var/www/html \
laravelsail/php81-composer:latest \
composer install --ignore-platform-reqs
- Configuring a shell alias
alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail'
- Create .ENV
cp .env.example .env
- To start all of the Docker containers
sail up
or start Sail in "detached" mode
sail up -d
Once the application's containers have been started, you may access the project in web browser at http://localhost.
- Generate app key
sail artisan key:generate
- Run migrations
sail artisan migrate --seed
- Compile assets
sail npm run build
email: [email protected]
password: password
# Running Artisan commands locally (No Docker)...
php artisan queue:work
# Running Artisan commands with Laravel Sail (Docker)...
sail artisan queue:work