1.2.122-1 • Published 3 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:
For Intel PC and MAc
Install Node.js and NPM on Mac
Go to project path
Create
.envfilecp .env.example .envWe can use the default
docker-compose.yml. Run docker-composedocker-compose upInstall dependency:
docker-compose exec app compose installRun the database migration:
docker-compose exec app php artisan migrateBuild the mix for front-end
npm install npm run developmentAccess the web app at http://localhost:8002/
For Macbook M1 (any laptop use CPU ARM architect)
Go to project path
Create
.envfilecp .env.example .envRunning doc
docker-compose -f docker-compose-arm-dev.yml upInstall dependency:
docker-compose -f docker-compose-arm-dev.yml exec app composer installRun the database migration:
docker-compose -f docker-compose-arm-dev.yml exec app php artisan migrateBecause 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 developmentAccess the web app at http://localhost:8002/