DEV Community

David Kanekanian
David Kanekanian

Posted on

Getting Started

Required programs

First you must download and install the following programs from the internet:

  • XAMPP - modules: Apache, PHP, MySQL, phpMyAdmin, Fake Sendmail (only if sending emails)
  • Visual Studio Code - PHP extension recommended
  • Chrome - any browser is fine but Internet Explorer may display styles incorrectly

This tutorial will use examples based on developing using Visual Studio Code on Windows, but most parts will apply to other IDE and OSes.

Creating project folder

  1. Open Visual Studio Code.
  2. Click Open folder... or File > Open folder...
  3. Find your XAMPP installation and enter the htdocs folder.
  4. Create a new folder called NeatTreats.
  5. Click New File in the Explorer tab (left) or File > New File. Save the file as index.php which means it is the landing page (links to other pages).

Opening your site

  1. Open File Explorer to your XAMPP installation folder.
  2. Run xampp-control.exe and start the Apache and MySQL module.
  3. Open your browser to URL localhost/NeatTreats (if your project folder NeatTreats is in the htdocs folder).
  4. Make sure you have an index.php file inside NeatTreats and it will be displayed!
  5. When you make changes to the code, refresh the browser using F5 to see what changed.

Entering SQL commands

  1. Open File Explorer to your XAMPP installation folder.
  2. Run xampp-control.exe and start the Apache and MySQL modules.
  3. Open your browser to URL localhost/phpmyadmin.
  4. Enter commands into the console at the bottom. It is good practice to learn the commands rather than use the GUI tables.

Top comments (0)