Skip to content

hackdawg-ph/hackdawg.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Local Setup

Quick start

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

Checking if database is ready

We can utilize the ping-db script using make to check if database has boot up:

make ping-db

Connecting to the database from the host machine

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

Connecting to the database using a GUI

Most database GUIs out there supports importing a database from a url:

mysql://hackdawg:password@127.0.0.1:33069/hackdawg

Testing

make test