#abrigham.com This is the codebase that powers abrigham.com
##Table of Contents
To run this you must first have git and docker installed.
Clone the repo including the laradock submodule
git clone --recursive git@github.com:abrigham1/abrigham.git
Update your hosts file with the following entry
127.0.0.1 abrigham.test mlapi.abrigham.test
Once done navigate to the main directory in the command line and run the following commands.
# copy env files
make first/install
# bring up our docker containers
make docker-up
# install composer dependencies, npm dependencies, compile assets, generate encryption key
make local/dist
bin/dev/php artisan key:generate --ansi
Once docker has booted you should be able to access it locally by navigating to abrigham.test
### Interacting with docker ###
# bring docker containers up
make docker-up
# bring docker containers down
make docker-down
# restart the containers
make docker-restart
# check the running containers
make docker-ps
# build the containers
make docker-build
# rebuild the containers and bring them back up
make docker-rebuild
# enter the workspace container
make workspace
### portal to run composer/php/npm commands in workspace container ###
bin/dev/composer
bin/dev/php
bin/dev/npm
# examples
bin/dev/php artisan test # docker-compose -f laradock/docker-compose.yml --project-directory laradock exec --user=laradock workspace php artisan test
bin/dev/npm install # docker-compose -f laradock/docker-compose.yml --project-directory laradock exec --user=laradock workspace bash -c "npm install"
bin/dev/composer update # docker-compose -f laradock/docker-compose.yml --project-directory laradock exec --user=laradock workspace bash -c "composer update"