In this post i want to share one issue that i fetch. When i started working on my react js project first time on my ubuntu 16.04, i installed npm and then after i run bellow command:
npm install -g create-react-app
this way i installed create-react-app then after i created new command using create-react-app commands, so i run bellow command for create new app of reactjs.
But when i run above command i found one error <strong>"/usr/bin/env: ‘node’: No such file or directory"</strong>. I thought what will be issue, i searched on go.....
We always require to create virtualhost on each project because we don't want to run each project manually, so it is better way to create virtual host address for each project when you development like as bellow:
It will best way to run our project on local system. But if you want to create virtual host on ubuntu, you have to follow several step like site enabled, site enabled config, site directory permission, hosts entry and etc. You have to follow several step on each virtual host create time. I think it take a.....
Today, I am going to share with you How to create admin panel in Laravel 5 Application. In this tutorial we will create quick simple back-end admin panel using voyager package.
We always require to create admin area for every website. Admin Panel keep dynamic our website. Admin Panel through admin user can handle website dynamically like change title, meta-data, posts and etc other modules. So If you are working on Laravel framework and you require to create quick admin panel then you can do it using voyager package. voyager package through we can make quick back-end in our Laravel 5. This pa.....
Composer through we can get packages from git and use it in our project. But you require to install composer in your system for getting packages. You can get packages for core PHP, Laravel, codeigniter etc.
So, If you are working on ubuntu OS and you require to install composer then this post will help you quickly install composer using terminal command line in your ubuntu system.
First Open your terminal and fire bellow three commands, i listed just three command to install composer, you have to just run one by one:
<pre class="prettyprint lang-php">
curl -sS https://getcomposer.org/install.....
Today, i am going to show you how to authenticate user node js using JWT and socket io in Laravel 5.3. It is very very important because if you are working with chat application or messengers system etc with user then you have to use JWT token because it is very safe and secure way.
If we work on chat module with socket io but someone can easily hack our code. At that time we require to check given JWT token is valid or not using <strong class="path">socketio-jwt</strong> package of Node.
socketio-jwt package thorough we can simply authentication with user and identify that token is valid .....
When i was working on my Laravel 5.3 application with socialite google API. I fetched one issue when redirect on my application.
I had successfully created my project on google console with site URL and redirect back URL too. But when it was redirect back on path i found one error like "403 Forbidden - Access Not Configured. Google+ API (truncated...)".
I did try my self but i can't solve this error. It was always return error on my screen like this way:
<strong>"ClientException in RequestException.php line 107: Client error: `GET https://www.googleapis.com/plus/v1/people/me?prettyPrint=fal.....
Nowdays, Laravel is a most popular framework of PHP. Laravel provide lots of functionality like data migration, MVC, blade template etc. But if you don't know how to install laravel in your windows system then you can run laravel easily by following few step. In this installation we use xampp server for PHP.
<strong class="step">Step 1: Install Xampp</strong>
In this step we have to install xampp for PHP, if you haven't install xampp server in your system then you can donwload and install from here :<a href="https://www.apachefriends.org/download.html" target="_blank">Download xampp</a>
we always like to create virtual host and run our project that way we can debug properly and run as like our website. But if you are working on ubuntu then we have always follow several step to create virtual host and that very long process.
So, i found one package that provide virtualhost command that way we can create new virtual host and also delete virtual host command. so just follow bellow step:
<strong class="step">Create virtualhost command</strong>
$ cd /usr/local/bin
$ wget -O virtualhost https://raw.githubusercontent.com/RoverWire/virtualhost/master/virtualhost.sh
$ chmod +x.....
If you require to remove cordova and ionic from ubuntu then you uninstall using terminal command. you can uninstall cordova then you can just run bellow command. I added two command one for uninstall cordova and other uninstall ionic framework.
<pre class="prettyprint lang-php">
sudo npm uninstall -g cordova
sudo npm uninstall -g ionic
If you want to run any php project directly without virtualhost then you can run easily. You must have install PHP only. Not only core php project but if you have question like how to run codeigniter project, how to run yii2 project, how to run symfony project, how to run zend framework project, how to run cakephp project, how to run drupal project etc, i mean you can run any project directly. You have to just fire bellow command on root directory.
<pre>php -S localhost:8000</pre>
After this command you can access from bellow path: