Write a Web Application for Free Edition 2



Similar documents
Web Hosting Wordpress, Joomla, Drupal Integration

Build it with Drupal 8

Setting Up a Development Server

FireBLAST Marketing Solution v2

How to use FTP Commander

IBI Group FTP: Usage Instructions

Apache Configuration

Livezilla How to Install on Shared Hosting By: Jon Manning

Lesson 7 - Website Administration

Transferring Your Hosting Account

SSH Secure Client (Telnet & SFTP) Installing & Using SSH Secure Shell for Windows Operation Systems

Installing buzztouch Self Hosted

Installation Instructions

CEFNS Web Hosting a Guide for CS212

PhoneGap Build Starter

AonLine System Requirements - Updated 8th June 2015

Install FileZilla Client. Connecting to an FTP server

Using Internet or Windows Explorer to Upload Your Site

Web Hosting Training Guide. Web Hosting Training Guide. Author: Glow Team Page 1 of 28 Ref: GC278_v1.1

Initial Setup of Microsoft Outlook 2011 with IMAP for OS X Lion

Initial Setup of Mozilla Thunderbird with IMAP for OS X Lion

Downloading and Installing Core FTP

How To Create A Website On Atspace.Com For Free (Free) (Free Hosting) (For Free) (Freer) ( (Web) (Femalese) (Unpaid) (

MOODLE Installation on Windows Platform

How to Install and Setting Up Drupal

Schools Remote Access Server

Google Trusted Stores Setup in Magento

Welcome to ECBuzz.com! Please go through this document carefully to make the experience of owning and using a website an enjoyable one.

Build a Multilingual Website with Joomla! 2.5

FileZilla: Uploading/Downloading Files to SBI FTP

RETRIEVING NMR DATA JB Stothers NMR Facility Materials Science Addition 0216 Department of Chemistry Western University

Welcome to the TransPerfect Translations Secure File Transfer Website What is Secure FTP?

Quick Start Guide. Hosting Your Domain

Building Website with Drupal 7

Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

Anchor End-User Guide

TIMETABLE ADMINISTRATOR S MANUAL

Web Hosting Training Guide. Web Hosting Training Guide. Author: Glow Team Page 1 of 22 Ref: GC349_v1.1

Initial Setup of Microsoft Outlook with Google Apps Sync for Windows 7. Initial Setup of Microsoft Outlook with Google Apps Sync for Windows 7

Initial Setup of Mozilla Thunderbird with IMAP for Windows 7

Intro to Web Development

HOW TO USE THE File Transfer Protocol SERVER ftp.architekturaibiznes.com.pl

Creating a Website with MS Publisher

LIS 534 Lab: Internet Basics

Setting Up groov Mobile Apps. Introduction. Setting Up groov Mobile Apps. Using the ios Mobile App

Lets Get Started In this tutorial, I will be migrating a Drupal CMS using FTP. The steps should be relatively similar for any other website.

Concession FTP User Guide May 2011 Version 1.2

ITP 101 Project 3 - Dreamweaver

APPLICATION NOTE. CC5MPX Digital Camera and IPn3Gb Cellular Modem 10/14. App. Note Code: 3T-Z

Spring 2014 Urban Affairs network computers and computer labs Mapping your H:\ drive using Microsoft Windows 7

osclass open source classifieds Installation Guide step by step

Microsoft Expression Web

Accessing the FTP Server - User Manual

DSHS Secure FTP Instructions

Creating an Intranet Website for Library & Information Services in an Organization

AVTranz The Court Record Online (TCRO) Operating Instructions Vermont Court System

Using the CCNY Server Space with Secure Shell 3.0 for Windows Created by Doris Grasserbauer

Guide to Using Citrix at SLU (Windows)

Advanced Digital Imaging

1. Please login to the Own Web Now Support Portal ( with your address and a password.

Your First Web Page. It all starts with an idea. Create an Azure Web App

deskspace responsive web builder: Instructions

Information & Communication Technologies FTP and GroupWise Archives Wilfrid Laurier University

Quick Start Guide. Installation and Setup

File Transfer Protocol (FTP) Instructions

Send Video Recordings from the DVR to a FTP Server on your PC

Beginning Web Development with Node.js

DOCUMENT MANAGEMENT SYSTEM

Instructions for Setup and Connecting to Department of Education Secure FTP(SFTP) server January 23, 2013

Joomla! 2.5.x Training Manual

Lab 1: Create a Personal Homepage

Configuring iplanet 6.0 Web Server For SSL and non-ssl Redirect

Managing Documents in the Citrix XenApp Remote Desktop

Using Remote Web Workplace Version 1.01

How to Make a Working Contact Form for your Website in Dreamweaver CS3

VPN User Guide. For Mac

MySQL Quick Start Guide

How to Setup and Connect to an FTP Server Using FileZilla. Part I: Setting up the server

Getting Started with Dynamic Web Sites

Microsoft FrontPage 2003

Contents First Time Setup... 2 Setting up the Legal Vault Client (KiteDrive)... 3 Setting up the KiteDrive Outlook Plugin Using the Legal Vault

Montefiore Portal Quick Reference Guide

Remote Desktop Web Access. Using Remote Desktop Web Access

All the materials and/or graphics included in the IceThemetheme folders MUST be used ONLY with It TheCityTheme from IceTheme.com.

Upgrade of Business Systems Data Warehouse Reporting

Creating a Website with Google Sites

How to Create a WordPress web site at

Remote Access. Connecting to your computer from home

MiraCosta College now offers two ways to access your student virtual desktop.

INTRODUCTION TO WEB TECHNOLOGY

DSI File Server Client Documentation

Adobe Dreamweaver CC 14 Tutorial

Accessing Personal Web Folders Macon State College

Lab: Create Your Own Homepage! This exercise uses MS Expression Web as a Web Page creation tool. If you like you

NAS 225 Introduction to FTP Explorer

Generate Android App

How To Use Textbuster On Android (For Free) On A Cell Phone

Transcription:

Write a Web Application for Free Edition 2 Thomas Davenport This book is for sale at http://leanpub.com/writeawebapplication4free This version was published on 2016-01-27 This is a Leanpub book. Leanpub empowers authors and publishers with the Lean Publishing process. Lean Publishing is the act of publishing an in-progress ebook using lightweight tools and many iterations to get reader feedback, pivot until you have the right book and build traction once you do. 2016 Thomas Davenport

Contents Chapter One............................................ 1 In which we get started.................................... 1

Chapter One In which we get started Introduction We are going to build a simple web application to learn something about HTML, CSS, JavaScript, PHP and MySQL. We will use these technologies to create a working web application. Apart from your computer and internet connection, everything you use will be free. We will develop and test our code off-line before uploading the tested application to the server. That is not always a straight forward process but it does allow us to make mistakes offline and in private. NB: For this book I am working on a Windows platform. All of the code will work on Linux or IOS but you may need different development tools. The browser in all of the images is Firefox developer edition. Get the Tools 1. Text Editor There are many free editors. If you google Free Text Editor you will get over 150 million hits. They all have their own strengths and weaknesses. The one I will use is called Notepad++. I like the way the layout changes dependent on the file type and we will find the ftp and Spell-checker plugins very useful. Get a copy of Notepad++ from here https://notepad-plus-plus.org/ 2. Local Hosting Our free web server is most likely to be a Linux server so we need a local hosting environment that provides Apache, MySQL and PHP. Apache, MySQL and PHP provide the letters AMP in the various AMP stacks. If you google AMP stack apart from the guitar amplifiers you will probably get a list including WAMP, LAMP, MAMP, XAMP and a plenty of permutations on the AMP theme. I read the reviews, tried three different stacks and chose one called AMPPS. I have found it to be easy to use and trouble free. Get a copy of AMPPS from http://ampps.com/download 1

Chapter One 2 3. File Transfer Protocol We will need an application to transfer files between our development computer and our server. Transfers are carried out using a file transfer protocol (ftp). A fantastic free ftp application is FileZilla. Make sure you get the client version. Get a copy of FileZilla from https://filezilla-project.org/download.php 4. Hosting An editor and local hosting are enough to get us started but as we are assembling our toolkit let s get somewhere to host our web application. When I googled free web hosting sites with PHP MySQL review I got 1,820,000 results in 0.30 seconds and looked at the first 4. http://magazine.joomla.org/issues/issue-oct-2012/item/840-part-1-review-9-free-web-hosting-servicesto-make-joomla-site-live has a list of reviews and a comparison chart. Using more gut feel than serious analysis I plumped for Byethost. To use byet open a browser (they recommend using Firefox) and go to https://byet.host/. Select Fre Hosting->Signup for Free Hosting. Give your details, they send you an email, follow the link in the email and then, hey presto, you should see something like this: Sign up for free web hosting My site is called se0010.byethost6.com - not the most memorable name but it will do for now. Copy the hosting details and save them somewhere that is both safe and accessible.

Chapter One 3 5. A Simple Web Page - Local Version Our plan is to create a simple web page and view it using the local host. Once the page looks the way we want it we will upload it to our web host and see what it looks like there. First thing is to open AMPPS. You should see this: Your local Apache/MySQL/PHP stack The two Stop buttons mean Apache and MySQL have both started. PHP will also be running. Minimise AMPPS for now. If you installed AMPPS to C:/Program Files/Ampps you should find there is a folder called C:/Program Files/Ampps/www. Create a new folder called C:/Program Files/Ampps/www/app. Open Notepad++, copy and paste the code below into Notepad++ then save it to a file called index.html in the C:/Program Files/Ampps/www/app folder. 1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>wwa4f</title> 6 </head> 7 <body> 8 <h1>write a Web Application for Free</h1> 9 <p>this is where my web application is going to be</p> 10 </body> 11 </html>

Chapter One 4 Open a browser and enter the address localhost/app/ in the address bar. If everything has gone according to plan you should see something like this: Your first web page running on a local server If you can t see this page in your browser go back and find which step you have missed. 6. A Simple Web Page - Remote Version The next step is to put our webpage onto our server. To do this we will use the ftp plugin for Notepad++. Your copy of Notepad++ probably looks like this: Notepad++ Click on Plugins->Plugin Manager->Show Plugin Manager. Scroll down to NppFTP and check the box. This should cause the ftp plugin to be loaded. Now click on Plugins->NppFTP->Show NppFTP Window. Notepad++ should look like this:

Chapter One 5 Notepad++ with the FTP window open Click on the settings button, it s the sort of gear wheel, last but one icon on the bottom right menu at the top of the screen. Choose Profile Settings->Add New and give a name for the connection. I called mine SE0010 because that is my site name. Put in the ftp details for the Hostname and Password that you were given by the hosting company. The port should be 21. Check the Ask for password box (you don t want Notepad++ to connect automatically when you are not there now do you). Click Close. The (Dis)Connect button should now be blue. Click on the (Dis)Connect button and enter your password. If everything has gone to plan you should now see this: Notepad++ connected to the host Notice the file called DO NOT UPLOAD FILES HERE. That s fairly clear isn t it? Right click on htdocs then left click on Create new directory. Call the directory app and click OK. This should create and display the new directory. Right click on the new directory then left click Upload current file here. Now you should see this:

Chapter One 6 Notepad++ with source and upload Open a new tab on your browser and navigate to http:// your web address/app/. If everything has gone as we planned you should see this: Your first web page on the internet and if you do you deserve a pat on the back. You have successfully: Downloaded a free text editor and AMP stack Written and tested a working web page Registered a free web site Created an FTP profile Connected to your site Uploaded your web page And it works You really do deserve a pat on the back. You do you can sit back in the warm glow of a job well done. You have established base camp and are ready for the next stage in our conquest of web applications.