cd /opt/bitnami/apache2/htdocs
sudo git clone https://github.com/elminson/gc_lamp_laravel.git todo
cd todo
sudo composer install
sudo chmod 777 storage/* -R
Enter in Mysql console:
mysql -u root -p
and execute this command:
create database apiDB;
and exit from the mysql console
Create a copy of .env.example with this command
sudo cp /opt/bitnami/apache2/htdocs/todo/.env.example /opt/bitnami/apache2/htdocs/todo/.env
Edit the file .env to set the database name and password
sudo vim /opt/bitnami/apache2/htdocs/todo/.env
And change this line
DB_HOST=127.0.0.1
DB_DATABASE=
DB_PASSWORD=
for
DB_HOST=localhost
DB_DATABASE=apiDB
DB_PASSWORD=aSuperPasswordWithSteroids
Finally execute
php artisan migrate
To load test data
php artisan db:seed