Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/manhpham90vn/laravel_boilerplate


https://github.com/manhpham90vn/laravel_boilerplate

Last synced: 6 days ago
JSON representation

Awesome Lists containing this project

README

        

# Laravel Boilerplate

## Use docker

- bootstrap

```shell
docker-compose up
```

- post install

```shell
docker exec laravel_boilerplate_app composer install
docker exec laravel_boilerplate_app php artisan jwt:secret -f
docker exec laravel_boilerplate_app php artisan key:generate
docker exec laravel_boilerplate_app php artisan config:clear
docker exec laravel_boilerplate_app php artisan migrate
docker exec laravel_boilerplate_app chmod 0777 -R /var/www/html/storage
docker exec laravel_boilerplate_app chown -R www-data:www-data /var/www/html/storage
```

- start shell

```shell
docker exec -it laravel_boilerplate_app bash
```

- reset permission

```shell
sudo chown -R $USER:$USER .
```

- docker remove all

```shell
docker stop $(docker ps -aq)
docker container prune -f
docker image prune -f -a
docker volume prune -f -a
docker network prune -f
docker system prune
```

## Use Native

- install php on ubuntu 24.04

```shell
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt-get install -y openssl php8.3{,-cli,-common,-fpm,-mysql,-zip,-gd,-mbstring,-curl,-xml,-bcmath,-tokenizer}
sudo update-alternatives --set php /usr/bin/php8.3
```

- install composer

```shell
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
```

- install mysql server

```shell
sudo apt install mysql-server
```

- install redis

```shell
sudo apt install redis-server
```