Wednesday, May 16, 2012

Setting up a landing page - Part 2 - Day 3

Today we will set up a temporary landing page for our new domain.

I will be using eclipse for my text editing but you can use any text editor.  A lot of the steps in this blog are not necessary but they will help us stay organized later.  The first thing I like to do is create a new project.  You can do this by going to the file menu and clicking New.  The Project we want to choose is under the General tab.  Also a right click anywhere in the project explorer pane will also bring up a menu with New, then select project.


Click the next button and enter a name for your new project.  I choose MyNewProject.


Click Finish and you should see your new project in the package explorer pane.  It is pretty much just a folder with a .project file in it.  Let's add a folder beneath it.  We are going to repeat the same process as creating a project but this time we are going to right click on the project itself.  Select New and then select Folder.


The New Folder window will appear.  Enter a new for your folder (I choose html) and then click Finish.


We now have a project with one folder underneath it.  Eclipse has many built in templates.  So lets use one for an html 5 web page.  Following the same steps as above right click on the www (I renamed my html folder to www), select New then scroll down and select Other.   Scroll down to the Web folder and select HTML file.


Click Next and enter a name for our temporary landing page.  I choose temp.html.


Click Next and make sure Use Html Template is checked.  Scroll down and select New HTML FIle (5) and click Finish.


This will create our html page with some boiler plate code already created for us.  


This is eclipse's template for an html 5 document.  We know this is an html 5 document because of the first line in the file - the doctype.  Add the following few lines of code to our document between the body tags.

Save the file.  Lets take a look.  Right click on the file and elect Open With and Choose Web Browser.  This will open a browser in eclipse and your web page should look something like the following:

I have my eclipse configured to display in an external web browser.  You can do this by going into the preferences of eclipse.  Expand the General selection, click Web Browser and then select Use external web browser radio button.  Click Apply and Ok and now your web pages will be viewed with your default browser in a separate window.


So we have a new html file.  It isn't pretty but it is enough to replace our current index page provided by our web hosting company.  We need a SFTP program to transfer our new file to our server space provided by our web hosting company.  I am going to use Filezilla .  You will need to enter the sftp credentials provided by your hosting company into the site manager of filezilla.  The left side of filezilla is your computer and the right side is the server provided by your hosting company.  On the left navigate to your newly created web page.  On my mac this is in Users / *your login name* / Documents / Projects / my project name / www / temp.html (your path will vary depending on where you created your project).  



On the right, open your domain folder and you will see an index page.  Drag your temp.html file from the left to the right.  You can delete the index.html file on the right and rename your temp.html to index.html.  You can see from the image I choose to rename the original index.html provided by Platon to platon_index.html.  I then renamed my temp.html to index.html.  You can now visit your domain and you will see your newly created landing page.

Tuesday, May 15, 2012

Setting up a landing page - Part 1 - Day 2

Hello,

So the first thing I decided to do was choose a web hosting company and set up a temporary landing page for my domain.

I purchased my domain name through GoDaddy.  The whole process will take 5 - 10 minutes.  You can use GoDaddy as your web hosting company but I choose to use a Platon Web Hosting.  Why did I choose Platon?  The competitive pricing?  The reliable service?  Their office is based in the home of the hockey puck (Slovakia)?  While all these are good selling points, I choose them because my coworker recommended them to me and he just so happens to be the owner.

The first thing I did was set the name servers entry in GoDaddy to the name servers of Platon Web Hosting (Name server in case you are wondering what a name server is).  Inside the domain details tab of GoDaddy, click the set name servers link and enter the name servers provided by Platon.  As little as a few minutes to a few hours the domain should be available.  You can tell by visiting your domain and instead of seeing the GoDaddy message you will see the Platon web hosting message.

In part 2 we will set a temporary landing page to display instead of the above screen.


Sunday, May 13, 2012

Intro Day 1

Hello,

I decided to blog about my experiences creating an app I call NotJustTheTip, a mobile app to help parties split a check, play a bill paying game, and determine the tip.  I will be developing this app using HTML5, Javascript, and Phonegap aka Apache Cordova.  I will also be using the latest version of the Dojo toolkit currently version 1.7.2.

I will also be creating a website with additional information, tutorials on how to use the app, and another place to find this blog.

My goal of this blog is to help aspiring web developers learn how to create their own app.  I am assuming if you are following this blog you have very little technical experience.

Day 1 -

Purchased domain from go daddy - www.notjustthetip.com
Set up product page on Facebook - NotJustTheTip
Created twitter account - #NotJustTheTip

Hopefully through my trial and error this blog might help someone with similar goals.  Thanks for reading!