Last active
February 19, 2020 11:34
-
-
Save danielschmitz/e2059d55347a73f14ff5f1c00601c9cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt update && sudo apt dist-upgrade | |
$ sudo apt install composer php-zip php-mbstring php-xml php-pgsql | |
$ composer global require laravel/installer | |
$ export PATH="$HOME/.composer/vendor/bin:$PATH" | |
$ laravel new blog | |
$ cd blog | |
$ php artisan serve | |
bonus: postgresql | |
$ sudo apt install postgresql postgresql-contrib | |
$ sudo service postgresql start | |
$ sudo -u postgres createuser <username> | |
$ sudo -u postgres createdb <dbname> | |
$ sudo -u postgres psql | |
# alter user <username> with encrypted password '<password>'; | |
# grant all privileges on database <dbname> to <username> ; | |
# \q |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment