First run composer install
in command line to install dependencies
The required config is DATABASE_URL
. Please fill it with proper data. If you use homestead,
default url should be mysql://homestead:secret@127.0.0.1:3306/homestead
This project uses Laravel Homestead box.
- Vagrant
- VirtualBox or another virtual machine provider (Parallels, Hyper-V, VMware)
It's supposed that you have already installed composer packages (including dev ones).
Next you need to run php vendor/bin/homestead make
. It will create Homestead.yaml
file
in project root directory. Edit this file according your needs (see documentation).
For start configured homestead, simply run vagrant up
from project root. More information here.
For suspend machine you can run vagrant halt
In hosts
file map hostname from the Homestead.yaml
to IP address from the same file. By default it will be 192.168.10.10 homestead.test
.
After that you can access application via http://homestead.test.
You can change appropriate configs in the Homestead.yaml
file to change IP address and hostname.
For using virtual machine terminal via ssh, run vagrant ssh
For setup database execute migrations by running bin/console doctrine:migrations:migrate
.
NOTE: If you're using homestead run command from virtual machine terminal.
For setup demo data, you can use fixtures.
Run bin/console doctrine:fixtures:load
to upload data to database.
NOTE: If you're using homestead run command from virtual machine terminal.
Demo data contain 20 users with username userN
where N
is sequential number from 1 to 20.
Passwords are same for all users: pass123
.