npm.io
1.2.122-1 • Published 4 years ago

diag-corporate

Licence
Diag Corporate
Version
1.2.122-1
Deps
49
Size
823 kB
Vulns
26
Weekly
40

Diag Corporate (Diag Website - diag.vn)

Setup Development Environment

Prepare steps:

  1. Install git (here)
  2. Install docker and docker-compose (here)
For Intel PC and MAc
  1. Install Node.js and NPM on Mac

  2. Go to project path

  3. Create .env file

    cp .env.example .env
  4. We can use the default docker-compose.yml. Run docker-compose

    docker-compose up
  5. Install dependency:

    docker-compose exec app compose install
  6. Run the database migration:

    docker-compose exec app php artisan migrate
  7. Build the mix for front-end

    npm install
    npm run development
  8. Access the web app at http://localhost:8002/

For Macbook M1 (any laptop use CPU ARM architect)
  1. Go to project path

  2. Create .env file

    cp .env.example .env
  3. Running doc

    docker-compose -f docker-compose-arm-dev.yml up
  4. Install dependency:

     docker-compose -f docker-compose-arm-dev.yml exec app composer install
  5. Run the database migration:

    docker-compose -f docker-compose-arm-dev.yml exec app php artisan migrate
  6. Because we can not build front-end directly in Macbook M1 so that why we will build the mix for front-end in docker

    docker-compose -f docker-compose-arm-dev.yml exec app npm install
    docker-compose -f docker-compose-arm-dev.yml exec app npm run development
  7. Access the web app at http://localhost:8002/