-
-
Notifications
You must be signed in to change notification settings - Fork 865
Installation
- Sign-up with DigitalOcean and get $10 discount! Create a droplet with LEMP stack config
-
!!! Email and Passwords !!!
- [email protected] / secret (role:superadmin)
- [email protected] / secret (role:admin)
- [email protected] / secret (role:user)
** Notes: Turn on VT-x on your machine: **
-
If you haven't install node, install it now
-
Run:
npm install -
Then:
npm run devand wait for it to compile (currently, only admin assets are being compiled)
-
Open your 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 HOMESTEAD directory via the terminal:
cd ~/Homesteadthe runvagrant ssh -
Once inside vagrant, cd to your project folder:
cd ~/Homestead/Code/<project folder>and docomposer install -
Copy .env.example
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 -
Symlink the
storagefolder to public. Runphp artisan storage:link. This is important to display the uploaded images -
If you run your app with
php artisan serveconnect to your installed db connection
-
By default, Paypal (Express Checkout) is the default payment gateway. You must configure the credentials in the payment methods admin:
- Account ID =
[email protected] - Client ID =
xxxx - Client Secret =
xxxx - Payment URL =
https://api.sandbox.paypal.com - Mode =
sandboxorlive
- Account ID =
-
MailChimp Newsletter settings should be set in
.envMAILCHIMP_API_KEY=MAILCHIMP_LIST_ID=
-
Set your mail server in the
.envMAIL_DRIVER=smtpMAIL_HOST=smtp.mailtrap.ioMAIL_PORT=2525MAIL_USERNAME=MAIL_PASSWORD=
-
Set your shop default config
SHIPPING_COST=0TAX_RATE=10DEFAULT_CURRENCY=USD
- There are many ways to install it on your server. If you need help, you can message me for my service. Thanks!