How to Install Bagisto in MAC?
-
Follow these steps, precisely:
Brew Update:
- Run brew update in terminal
Install PHP:
2. brew install [email protected]Install NodeJS/NPM:
3. brew install nodeInstall Composer:
4. Install Composer by going to the link below:
https://getcomposer.org/download/Change the composer's path to default system path:
5. mv composer.phar /usr/local/bin/composerInstall MySQL:
6. brew install [email protected]Install Larvel Valet Dependency:
7. composer global require laravel/valetInstall Valet in your Mac system:
8. valet installConfigure your TLD:
9. valet domain app/testDownload bagisto in a folder named sites(create if not there) inside home:
10. composer create-project bagisto/bagisto bagistoChange directory for other commands below:
11. cd inside the folder bagistoNote: Put the details for MySQL database and APP in .env file:
APP_URL
DB_CONNECTION
DB_HOST
DB_PORT
DB_DATABASE
DB_USERNAME
DB_PASSWORDRun Migration To Get All Tables that Bagisto Requires:
12. php artisan migrateRun this If you need demo data:
13. php artisan db:seedRun this to publish all assets from config files to assets:
14. php artisan vendor:publish
-> Press 0 and then press enter to publish all assets and configurations.Make the symlink for storage/public inside public directory:
15. php artisan storage:linkThis must be it.
-
In order to get the latest versions of the dependencies and to update the composer.lock file, you should use the update command**.** This command is also aliased as upgrade as it does the same as upgrade does if you are thinking of apt-get or similar package managers.