Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/netr/bash_localdev_laravel_setup_tool

Local development bash tool for laravel to help generate nginx site files, create self signed certs with mkcert and add domain link to /etc hosts
https://github.com/netr/bash_localdev_laravel_setup_tool

bash laravel nginx php php73 php73-fpm ssl

Last synced: 5 days ago
JSON representation

Local development bash tool for laravel to help generate nginx site files, create self signed certs with mkcert and add domain link to /etc hosts

Awesome Lists containing this project

README

        

## Local Development Helper for Laravel using Nginx / PHP 7.3 / Self Signed Certificates

---

### Required
- https://github.com/FiloSottile/mkcert :: Awesome easy to use go package to generate certs and sign them to your local store.

---

### Quick Information

Found myself doing this way too often, so I decided to learn bash and setup a script to automate it.

Fairly easy to use, just ` ./create.sh `

Next, select the type of nginx file you are trying to create.

- SSL (doesn't generate a cert and assumes /etc/ssl/domain.key)
- SSLGen (creates a cert with mkcert and moves to /etc/ssl)
- HTTP (doesn't use any ssl)

It will then prompt you for your development url (i.e. project.test)

Then your folder name of your /var/www/html (i.e. project for /var/www/html/project)

Ties in well with this bashrc function

```
lnew() {
laravel new $1
cd $1
composer require laravel/ui --dev
php artisan ui vue --auth
composer require laravel/telescope --dev
composer require --dev barryvdh/laravel-ide-helper
php artisan telescope:install
git init
git add .
git commit -m "Install Laravel"
npm install
npm run dev
}

./create.sh
```