-
Notifications
You must be signed in to change notification settings - Fork 1
2. Installation
Every project contains a README.md file. These files are important and MUST be maintained.
Each project uses environment variables to customize their behaviour across the different environment. This has been proved to be the best and most usec practice across organizations. You must setup your IDE or web server to implement and warm up those configurations before serving the application.
In each README.md file, you will find an Environment variables section that list all the key/values you need to setup. These values shouldn't be placed in your Windows or OS environment variables panel but either part of your initialization process while serving each individual project.
For instance, using PHPStorm or WebStorm, you can paste and adjust each configuration as part of a Run Configuration.
To install a front-end project on your local machine, make sure you have Node and NPM installed to the proper version (see Standardization page).
- Clone the repository on your local machine under
C:\dev. Once cloned, it should have the pathC:\dev\[REPO_NAME] - In a terminal, run
npm install. If any error occurs, deletenpm_modulesfolder andpackage.lock.jsonfile and start over. If you are still experiencing issues, runnpm --version(make sure you are using the correct version) and if so, investigate. - If step 2 succeeded, run
npm serveornpm start. Watch for the logs to retrieve the URL and port to use. - Copy-paste that URL in your browser.
To install a back-end project on your local machine, make sure you have PHP and MySQL installed to the proper version (see Standardization page).
- Clone the repository on your local machine under
C:\dev. Once cloned, it should have the pathC:\dev\[REPO_NAME] - In a terminal, run
composer install. If any error occurs, deletevendorfolder andcomposer.lockfile and start over. If you are still experiencing issues, runphp --version(make sure you are using the correct version) and if so, investigate. - Check out the README.me file for the virtual host guidelines. Setup your Apache or nGinx server in consequence.
- Restart your web server. Copy-paste your virtual host URL in your browser.
Remember to learn something you love today.