๐Ÿ“ฆ waynehamadi / project

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching
๐Ÿ“ฅ Clone https://github.com/waynehamadi/project.git
HTTPS git clone https://github.com/waynehamadi/project.git
SSH git clone git@github.com:waynehamadi/project.git
CLI gh repo clone waynehamadi/project
merwanehamadi merwanehamadi First commit 65a14a4 5 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ app
๐Ÿ“ bootstrap
๐Ÿ“ config
๐Ÿ“ database
๐Ÿ“ docker
๐Ÿ“ public
๐Ÿ“ resources
๐Ÿ“ routes
๐Ÿ“ storage
๐Ÿ“ tests
๐Ÿ“„ .editorconfig
๐Ÿ“„ .env
๐Ÿ“„ .env-dev
๐Ÿ“„ .gitattributes
๐Ÿ“„ .gitignore
๐Ÿ“„ .styleci.yml
๐Ÿ“„ artisan
๐Ÿ“„ CHANGELOG.md
๐Ÿ“„ composer.json
๐Ÿ“„ composer.lock
๐Ÿ“„ docker-compose.yml
๐Ÿ“„ package.json
๐Ÿ“„ phpunit.xml
๐Ÿ“„ readme.md
๐Ÿ“„ server.php
๐Ÿ“„ webpack.mix.js
๐Ÿ“„ README.md

Overview ========

We will use Docker to setup containers to run our Laravel application. This should be a simple implementation to get developers up and running ASAP. Additionaly these containers can be used in any staging and production environments.

Setup =======

Checkout code from git repository.

Install docker and docker-compose.

To build the Application and it's containers, in your terminal go to the root directory and run:

# docker-compose up

# docker-compose exec app composer install

At this stage you will have a working application at http://127.0.0.1 and can use your favorite IDE to develop in your local environment's git cloned directory.

Laravel DB Setup ================

We will run the Laravel migration command to setup database tables. This executes the command within the application container.

# docker-compose exec app php artisan migrate

Cleanup =======

Removing your container images

The best way to do that is with

# docker system prune -a

Deleting locally stored volumes

Find the volume with the following command.

# docker volume ls

Delete the volume with:

# docker volume rm VOLUMENAME