Skip to content

felixlkh/card-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Laravel Backend/API

Installation

  1. Clone your repository, example: git clone https://github.com/wpaphk/card-game

  2. Change directory into the Laravel project. cd card-game/backend/

  3. 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.

  1. Set the proper permissions to the project files.
  • sudo chown -R $USER: .
  1. Copy .env File
  • cp .env.example .env
  1. Run the servers with Sail
  • ./vendor/bin/sail up -d
  1. Generate APP_KEY Key.
  • ./vendor/bin/sail artisan key:generate
  1. Build the seed.
  • ./vendor/bin/sail artisan migrate:fresh --seed
  1. npm Install
  • ./vendor/bin/sail npm install
  1. npm build
  • ./vendor/bin/sail npm run build
  1. You can now open your application with your browser: http://localhost
Login
User: admin@example.com
Password: password

Angular App

Installation

  1. Change directory into the angular project. cd ../high-low-card/

  2. Build the image and fire up the container: docker-compose up -d --build

  3. You can now open your application with your browser: http://localhost:4201

About

Initial commit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published