After making sure that your system has all the pre-requisites, you are ready to install the application. Once you download file from codecanyon.net, you will get a compressed file in your computer. After extracting the compressed file, below is the file structure of the script.
You might not get two folders marked in red. To get these folders in your script follow these steps:
- Open command prompt or terminal and navigate to the folder where you have extracted this script.
- Type below command to first get "vendor" folder.
- This may take some time depending upon your internet speed and your system configuration. Do not interrupt while the the process is running. Once completed, you will get "vendor" folder as shown in the above screenshot.
Important: As per Laravel 5.5 document - "Any
firemethods present on your Artisan commands should be renamed to
handle". You need to go to rename file method present in "vendor\tymon\jwt-auth\src\Commands\JWTGenerateCommand.php".
- Next, to get "node_modules" folder, you need to run below command.
- This will again take some time depending upon your internet speed and your system configuration. Once completed, you will get "node_modules" folder as shown in the above screenshot. Please note that you need to have installed npm globally before running this command.
- Next, you need to run below command in order to get a secret App Key for your script.
php artisan key:generate
- Open .env file as shown in the above screenshot in any text editor (Say Notepad++ or Atom or Sublime Editor) and enter required details. You must have done this step previously if you have deployed Laravel application.
- After setting database details and other global variables in .env file, you need to create database structure in your system. Make sure you enter correct database details. For this, you need to run below command.
php artisan migrate
- This command will create tables in your database. In the last step, you need to run below command.
npm run dev
- This will compile all the assets into public folder and now you are ready to run the application.
- Go to your browser, and navigate to application URL as mentioned in APP_URL. You will get login page of this script.
If you are running "npm run watch" with browser-sync then make sure you have entered your application URL in the place of "laravue" in webpack.mix.js file.
If you miss any of these step, you might not get the login page. For any issue, please raise a ticket in this portal.