Guest User

Untitled

a guest
Sep 25th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.54 KB | None | 0 0
  1. # Installation
  2.  
  3. ### For Shared Hosting
  4.  
  5. #### Files
  6. Upload the project zip in your shared hosting through cpanel and extract it. After extracting put contents of project **public_html/** folder to shared hosting **public_html/** folder and everything should go outside **public_html/** folder of shared hosting.
  7.  
  8. #### Database
  9. In project folder their file by the name of **.env** you will see lot of configuration options of which database related config. options are
  10.  
  11. **DB_CONNECTION=mysql** (keep this as it's)
  12. **DB_HOST=localhost** (keep this as it's)
  13. **DB_PORT=3306** (keep this as it's)
  14. **DB_DATABASE=hexurp_booking_db** (change this to your shared hosting database name)
  15. **DB_USERNAME=user1** (change this to your shared hosting database username)
  16. **DB_PASSWORD=password** (change this to your shared hosting databse user password)
  17.  
  18. In Project zip there will be **.sql** file, import it to your database server through phpmyadmin.
  19.  
  20. ### Email setup
  21.  
  22. You can use simple shared hosting email service or Mailgun service.
  23. If you want to use shared hosting service then change following field in **.env** field like below
  24. **MAIL_DRIVER=sendmail**
  25. or
  26. if you want to use Mailgun email service then you have to signup Mailgun which is a free service for upto 10000 emails per month. Once you signup their they will generate secret key which you have add in project **.env** file like below
  27. **MAIL_DRIVER=mailgun**
  28. **MAILGUN_DOMAIN=barber.com**
  29. **MAILGUN_SECRET=key-d20c6e01567d5360123328123d8395e8d53b333**
  30.  
  31. **Note:** You have to verify your domain with mailgun first
  32. Also there is one field **MAIL_FROM_NAME** in **.env** field this should be from same domain as your website domain e.g if your website domain is lifestyle.com then it's value should be like something@lifestyle.com. **MAIL_TO_ADDRESS** is address where you will receive contact form submissions.
  33.  
  34. ### Twilio (SMS Service for appointments)
  35. You have to create Twilio account and buy their programmable SMS service.
  36. **ENABLE_TWILIO=false** (To enable or disable twilio change it to true or false respectively. if you disabled the SMS service the application will fallback to email service automatically)
  37. **TWILIO_SID=AC8a804f89c4233a4b36f121e52972** (Twilio credentials from Twilio account)
  38. **TWILIO_AUTH_TOKEN=810e9455563d25c742d49918cebe6621** (Twilio credentials from Twilio account)
  39. **TWILIO_NUMBER=+12315663515** (Twilio Number to send Sms)
  40. **ENABLE_US_NUMBERS_ONLY=false** (If you just want accept USA phone numbers then change it to true else it will allow all international numbers)
  41.  
  42. ### Instagram Setup
  43. If you have instagram account then go to [developer.instagram.com](https://developer.instagram.com) and create a new client during creating please add the website uri as yourdomain.com of shared hosting you bought and redirect uri as **yourdomain.com/instagram/redirect** which will generate **client_id** and **client_secret**. Now add these credentials in **.env** file of project in below fields:-
  44. **IG_CLIENT_ID=b179c6590bb74b16863343867** (you instagram client id)
  45. **IG_CLIENT_SECRET=8b8707192d7e492dbf5865bb730bd533** (your instagram client_secret)
  46. **IG_REDIRECT_URI=http://appointment.dev/instagram/redirect** (your instagram redirect uri)
  47. **IG_MEDIA_EXPIRATION_MIN=2** (No. of minutes instagram media will be kept in a cache to avoid the spams)
  48. **IG_FILTER_TAG=icecream** (if you want to get media from instagram by a particular tag then use it here)
  49. **IG_FILTER_BY_TAG=true** (if you want fetch media by tag then set it to true or false if you want to fetch media by profile from which you had generated the credentials in developer.instagram.com)
  50.  
  51. ### APP RELATED Config
  52. **APP_NAME="Appointment App"** (change it your shopname this name will appear in Emails and footer)
  53. **APP_DEBUG=false** (change it false)
  54. **APP_URL=//appointment.dev** (change it to yourdomain.com you bought)
  55. **SLOTEXPIRE=3** (This will be the number of minutes the appointment slot will be held by the customer)
  56.  
  57.  
  58. ### Templates or Pages(About, contact, privacy)
  59. To change the content of pages go to project **resources/views/** folder, you will see file of extension **.blade.php** all these files are your pages of website. You can add html , php in their. You will see sections there to update particular parts of the pages.
  60.  
  61. If you have to add image somewhere then you have to add that image in **public_html/images** folder then use that image in a template like this <img src="{{asset('images/YOUR_IMAGE_NAME.jpg')}}">
  62.  
  63. If you have to change Menu items text then go to **resources/views/layouts/partials/navigation.blade.php**
Add Comment
Please, Sign In to add comment