-
-
Notifications
You must be signed in to change notification settings - Fork 863
Installation
** Notes: Turn on VT-x in your machine: **
-
Open you terminal and run
vagrant box add laravel/homestead -
Type
cd ~ && git clone https://github.com/laravel/homestead.git Homestead -
Go to
~/Homesteadand runbash init.shfor unix/linux andinit.batfor windows -
Create the project with
cd ~ && composer create-project jsdecena/laracom -
Modify your
Homestead.ymlfile in~/.homesteadfolder with
folders:
- map: ~/Code
to: /home/vagrant/Code
sites:
- map: homestead.app
to: /home/vagrant/Code/laracom/public
Just make sure you have Code folder in your home directory. If you have other workspace folders, change the Code with your folder.
-
Then run
vagrant up --provision -
Wait until the provisioning is finished then you can go to http://192.168.10.10
-
OPTIONAL You can also set the IP and name to
/etc/hostslike this192.168.10.10 homestead.appso you can go to http://homestead.app
- You just need to run
php artisan serveand it will open a browser for you
-
Go to the project folder and run
composer install -
Issue a command on the terminal
cp .env.example .env -
If you are on
homestead, default details DB connections are:DB_CONNECTION=mysqlDB_HOST=192.168.10.10DB_PORT=3306DB_DATABASE=homesteadDB_USERNAME=homesteadDB_PASSWORD=secret
-
Run migration and seed default data with
php artisan migrate --seed -
If you run your app with
php artisan serveconnect to your installed db connection
-
Admin / Customer login credentials:
- Check your database's
employeesandcustomerstables. Grab theemailand password should besecret.
- Check your database's
-
By default, Paypal is the default payment gateway. You must set the environment variable in you
.envwith your eithersandboxorproductioncredentials. -
Paypal credentials looks like this in the
.env:PP_ACCOUNT_ID=xxxxx-facilitator@email.comPP_CLIENT_ID=xxxxxPP_CLIENT_SECRET=xxxxxxPP_URL=https://api.sandbox.paypal.comPP_MODE=sandbox
-
Mailchimp Newsletter settings should be set in
.envMAILCHIMP_API_KEY=MAILCHIMP_LIST_ID=
-
Set your mail service in the
.env- MAIL_DRIVER=smtp
- MAIL_HOST=smtp.mailtrap.io
- MAIL_PORT=2525
- MAIL_USERNAME=
- MAIL_PASSWORD=