Step by Step Guide to Set Up a Local Web Development Environment


Any invention needs the use of a decent workshop – something that is appropriate for the task at hand. Instead of using a web hosting company's server, a local development environment allows you to operate your website on your own PC. You can modify your surroundings as much or as little as you like, and you can use whichever tools you choose.

A typical website is made up of several unique technologies that perform together without having to worry about it affecting your live site, as well as design and test your site before uploading it. When you remove the element of risk from the development process, it makes the process considerably less stressful.


In this article, you’re going to learn how you can get started with your own web development environment.

Let's take a look at the resources you'll need :
  • Operating System (Windows or MAC)
  • Any text editor (Atom, VSCode, Sublime, Brackets, or Notepad)

👉Install VSCode

I'm just using VSCode as a text editor for web development because it's much lighter, and the difference is immediately noticeable. This is due to the fact that it runs apps in the background and is not dependent on the IDE, ensuring that the IDE does not slow down. VS Code was also named the most popular IDE for Web development in the Stack Overflow Developer Survey 2019 :




No matter what type of project, VSCode easily helps you set up the IDE.

If you don't yet have VS Code installed on your computer, head to code.visualstudio.com to download it. It's a completely free download and it is available on every operating system out there. So, let's take a deep dive into each of them :

👉 Add some extensions

VSCode has tons of extensions. So, in the sidebar>go to extensions and the first one that I would recommend is called :
  1.  Live server: It sets up a local web server so that you can see the changes made in real-time without having to reload.
  2. Bootstrap 4, Font awesome 4, Font awesome 5 free and Pro snippets: This extension will help you to build websites based on bootstrap.
  3. JavaScript (ES6) code snippets: JavaScript is a programming language that spans front-end and back-end development. In web development JavaScript is key. You'll be writing a lot of it so these snippets will be helpful.
  4. Prettier-Code formatted: This extension will help you to keep your code formatted and makes your code pretty.
  5. Auto rename tag: Whenever you change an HTML tag, it automatically renames the corresponding tag.
  6. vscode-icons: This adds some icons to your files and folders to make them easily identifiable.

👉Let's open up a project folder

  • Just make a random folder outside of VSCode
  • Right-click on that folder
  • select "open with VSCode"
on the other hand from inside VSCode we can open File>Open Folder>Select the folder you want to open up on VSCode.So, that's how we can create a project folder.

👉Add a folder structure and some files

Let's go ahead and add some new files called index.html and style.css  and app.js. Now add some codes on those files. To see the progress right click on the screen > select Open with Live Server. This way you can see the changes live as your browser refreshes.

So those are the major things that I find very useful for setting up a local web development environment .



Comments

Popular posts from this blog

Top 5 Podcasts About DATA ANALYTICS

How to Rock LinkedIn's Algorithm in 2021

Tips and Tools to Write SEO Optimized Blog Posts