# Skill-Court Website built on Laravel with Docker

This repository includes the project files for the Skill-Court wbesite located in the skill-court folder and a Dockerfile and scripts for setting up the development environment.

## Quickstart

In order to setup the development environment the following must be completed:

- Install docker
- Clone this repository
- Using a terminal, move into the directory this repository was downloaded into
- On Mac/Linux/Windows run the following command:  

        $ docker build -f build-laravel-image -t skillcourt/laravel:dev --no-cache .

After executing all of the above, the laravel container is now built.
In order to start the container, move the project files into it, and start the local development server, use the scripts provided.  

- On Mac/Linux run the run-laravel.sh bash script:  

        $ bash run-laravel.sh

- On Windows run the run-laravel.ps1 PowerShell script:  

        $ .\run-laravel.ps1

Now the local development server is set up. You can modify the project within your local filesystem and the changes will be reflected inside the container.

If on Linux or using Docker Desktop for Windows/Mac the development server can be accessed through localhost:8000.

If on Windows and using Docker Toolbox the development server is usually accessed through 192.168.99.100:8000. The IP address will be the default address assigned by the Virtual Box DHCP.
