Requires Docker 18+
# First, copy the environment file:
cp .env.example .env
# Install dependencies:
composer install
yarn install
# Copy hosts to /etc/hosts
make copy-hosts
# Boot the docker containers:
make illuminate
make chore
# Build frontend:
yarn watch
# Finally you can visit: http://hackdawg.test
We can utilize the ping-db
script using make
to check if database has boot up:
make ping-db
Since the database is in a docker container, connecting to it from the host machine is as simple as:
mysql --protocol=tcp -P33069 -uhackdawg -ppassword
Most database GUIs out there supports importing a database from a url:
mysql://hackdawg:password@127.0.0.1:33069/hackdawg
make test