docker run --rm -v $(pwd):/app composer install
docker run --rm -v /$(pwd):/app composer install
docker run --rm -v ${PWD}:/app composer install
In terminal if you use macOS / Linux / Git Bash(Windows)
cp .env.example .env
Change database configurations in .env
DB_CONNECTION=mysql
DB_HOST=mysql_todo_app
DB_PORT=3306
DB_DATABASE=yourdatabasename
DB_USERNAME=root
DB_PASSWORD=yourpassword
change value line 25 phpunit.xml in phpunit.xml
<server name="DB_DATABASE" value="yourdatabasename"/>
docker-compose up -d
docker-compose exec app php artisan key:generate
docker-compose exec app php artisan migrate --seed
Open browser http://localhost:8000
- Go your database and seed the fake users created and choose one
- Password for users -> password
composer install
Change database configurations in .env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=yourdatabase
DB_USERNAME=root
DB_PASSWORD=yourpassword
change value line 25 phpunit.xml in phpunit.xml
<server name="DB_DATABASE" value="yourdatabasename"/>
php artisan key:generate
php artisan migrate --seed
php artisan serve
Open browser http://localhost:8000
- Go your database and seed the fake users created and choose one
- Password for users -> password
Host: 127.0.0.1
Port: 3308
Username : root
Password: yourdatabasepassword
Open browser https://production-todo-app.herokuapp.com
- [email protected]
- Password for users -> password