Skip to content

hnojedu/scores

Repository files navigation

Import and search scores

How to set up local (docker way)

Requirements:

  • Docker, docker-compose on local
  • terminal
  1. Clone projects and prepare vendor
git clone [email protected]:hnojedu/scores.git
cd scores
mkdir -p ./vendor/laravel
  1. Download Laravel Sail
git clone https://github.com/laravel/sail.git ./vendor/laravel/sail
  1. Setting env
cp .env.example .env

Changed if needed:

  • APP_PORT: port to run page
  • FORWARD_DB_PORT: port to access mysql via host machine
  • DB_PASSWORD: root password
  • APP_URL: ensure it's sync with APP_PORT, or FE can not call API
  1. Start docker-compose
./vendor/laravel/sail/bin/sail up -d
  1. Install app
./vendor/laravel/sail/bin/sail composer install

./vendor/laravel/sail/bin/sail php artisan key:generate
  1. create database and migrage
docker exec scores-mysql-1 mysql -uroot -proot -e "CREATE DATABASE scores CHARACTER SET utf8mb4"

./vendor/laravel/sail/bin/sail php artisan migrate
  1. Recreate app. Done
./vendor/laravel/sail/bin/sail up -d

App run at (by default): http://localhost:8082

Deployments

ask @zy666

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published