Now the domain will point to our localhost IP address. We should add a line:ġ27.0.0.1 (or any other name that you would prefer more) Hosts file is an operating system file that maps host names to IP addresses. The first step is to open Notepad (or any other text editor) in administrator mode, and navigate to C:\Windows\System32\drivers\etc and open hosts file for editing. Setting up the virtual host in XAMPP is really simple: So if your website is wouldn’t it be cool to have your API on subdomain like this:. It is possible for users to publish statuses, follow other users, unfollow other users, edit their information…Īnd after a while, you want to expose API for that website, so that users can make for example an Android app that will consume that API. Imagine that you run Twitter-like site with thousands of users in the database. Why are virtual hosts important in terms of API’s? In this lesson we are going to set up a local virtual host using XAMPP. It is just another name for shared hosting. On the internet virtual host is the provision of Web server hosting so that a company doesn’t have to purchase and maintain its own Web server and connection to Internet. ![]() Virtual hostsĪfter XAMMP is downloaded next thing to do would be to set up a virtual host on XAMPP. I am not going into detail about downloading and installing XAMMP since this information are described on XAMPP web page and it is really simple btw. The first thing to do is to download XAMPP. Let’s start! Setting up the environment for Laravel ![]() It will help you in your web development projects and also sharpen your developing skills. ![]() In this tutorial, I will explain how to start writing your own API using Laravel as backend language and XAMPP platform.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |