-
Clone your repository, example:
git clone https://github.com/wpaphk/card-game
-
Change directory into the Laravel project.
cd card-game/backend/
-
Install all required dependencies.
docker run --rm \
-u "$(id -u):$(id -g)" \
-v $(pwd):/var/www/html \
-w /var/www/html \
laravelsail/php81-composer:latest \
composer install --ignore-platform-reqs
NOTE: This may take a while if this is the first time installing this as a container.
- Set the proper permissions to the project files.
sudo chown -R $USER: .
- Copy .env File
cp .env.example .env
- Run the servers with Sail
./vendor/bin/sail up -d
- Generate APP_KEY Key.
./vendor/bin/sail artisan key:generate
- Build the seed.
./vendor/bin/sail artisan migrate:fresh --seed
- npm Install
./vendor/bin/sail npm install
- npm build
./vendor/bin/sail npm run build
- You can now open your application with your browser: http://localhost
Login
User: admin@example.com
Password: password
-
Change directory into the angular project.
cd ../high-low-card/
-
Build the image and fire up the container:
docker-compose up -d --build
-
You can now open your application with your browser: http://localhost:4201