diag-corporate
v1.2.122-1
Published
## Setup Development Environment ### Prepare steps: 1. Install git ([here](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)) 2. Install docker and docker-compose ([here](https://docs.docker.com/get-docker/)) ### For Intel PC and MAc 1. Insta
Downloads
2,098
Readme
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/
