Welcome to Dynamic Web 2!

What's in Dynamic Web 2?

The course will continue with content management systems (CMS) from Dynamic Web 1, except students will be learning how to use and modify existing, popular CMS rather than building one from scratch (Dynamic Web 1). We will also explore the strengths and weaknesses of CMS as well as the differences and similarities between the most popular CMS, including WordPress, Joomla!, and Drupal.

<-- Wordpress, Joomla! and Drupal icons

Structure of Dynamic Web 2

We are going to learn how to use the 3 main content management systems using online tutorials from Lynda.com.

Here is a link to a breakdown of the different tutorials we'll be using: https://goo.gl/vx73vi

IMPORTANT: If you don't have a county of Los Angeles Public Library card, please pick one up as soon as you can. You will need it in order to access Lynda.com for free. There is a County of LA public library right next to us, Duarte Library. Duarte library is walking distance, so there shouldn't be any excuse for not getting a library card. Once you have the card, sign up for Lynda.com via the library portal: lynda.com/portal/sip?org=colapublib.org

Structure of Dynamic Web 2 (continued)

  • Alongside the tutorials, we will also be building sites using the different content management systems. That is, we will be building a Wordpress, Joomla!, and Drupal site. 
  • Each site will be submitted as a CMS project. All 3 CMS projects are worth 42% of your grade, so each CMS project is worth 14% of your total grade. 
  • Students will also be updating their projects on a weekly basis. These weekly project updates will result in a completed CMS project. There will be 9 weekly project updates. The project updates will be worth 36% of your grade, so each project update is worth 4% of your total grade. 
  • There will also be 10 discussion questions, worth a total of 22% of your final grade. 

Let's Start!

  • Most of you may not have library cards yet, but we can still set up everything we need.
  • Note: You WILL need to have a county of Los Angeles Public Library card by next week or you will be docked points. 
  • Our first CMS is going to be Wordpress. 
  • Wordpress is a CMS and is also considered "An interface between your site and the content" (Wordpress Essential Training). This is explained in further detail under the "Getting to Know Wordpress" section of "Wordpress Essential Training" on Lynda. 
  • Wordpress is an open source project, which means that you can use, publish, and modify it for free. 
  • The term "Wordpress" can also be a bit confusing since it can refer to
    • Wordpress as the application itself, which can be downloaded and run locally
    • Wordpress.org, which is the community site for developing Wordpress and downloading the Wordpress application.
    • Wordpress.com is a hosting service where you can create and host a wordpress site for free or for a cost. If you choose the Wordpress.com option, you don't have to develop on a local machine. 
    • For more info, watch the second video on "Getting to Know Wordpress"

Wordpress Development

  • Now, the terms may be confusing, so let me clear this up. We are going to be downloading the Wordpress application to our local computer from Wordpress.org. We will then build up our application locally and push our site when we are ready to test it on a live server. 

  • Note: For the next few steps, we will be following along the Lynda.com tutorial: "Installing and Running Wordpress: MAMP". 

  • Before we download the Wordpress application, be sure you have MAMP installed. We are going to be running our Wordpress site using MAMP. If you've taken Dynamic Web 1, then you should have MAMP and the path for your MAMP directory set up to go to Sites. 
  • Once you have MAMP set up, go to Wordpress.org and download the latest stable version of Wordpress. 

Wordpress Development

  • Once you've downloaded Wordpress, place the Wordpress folder inside your "Sites" directory.

  • Next, open up your localhost:YOURPORTNUMBER in your browser and navigate to your Wordpress directory. You should see a setup screen if everything went correctly. 

Wordpress Development

  • Our next steps are going to be configuring Wordpress to work with MAMP. 

  • Select "English" as the language and click "Continue"

  • We are now going to create a new database in phpmyAdmin

  • Go to your localhost:YOURPORTNUMBER/phpmyadmin

  • Just like we did in Dynamic Web 1, go to the databases tab, type in the name of our new database, and then click on "create"

  • When creating a new database, the default name and password is "root". So, let's go back to our wordpress setup page on our localhost and type in the information for the database we just created. 

Wordpress Development

  • If you did this correctly, you should now see a screen with a button that says "Run the install". Click the button.

  • Put in the information that screen asks of you. That is, the site title, a username, a password, and an email. 

  • Click "Install Wordpress" when you're done filling in the information.

Wordpress Development

  • You can now log in to your wordpress site on your local machine and start developing. 

Why did we install Wordpress locally?

  • There are a couple of reasons we downloaded Wordpress rather than using the externally hosted Wordpress application on Wordpress.com:

    • Testing: We are able to test changes much faster locally than on Wordpress.com. 

    • Adding and changing content. We can add and change content much faster and much easier locally than by using Wordpress.com to make changes. 

Wordpress Development

 

  • We can also set up multiple Wordpress applications on our local machine by simply downloading the wordpress application, renaming the directory to whatever you want, and then placing it within the "Sites" directory. 

    • You will still have to go through the same installation process as you did earlier. 

Hosting

 

  • Now that we have our application running on our local machine, we are going to immediately host it on a live site. I'd like you all to set this up now so that we don't run into database issues down the road.

  • For hosting, I've chosen to use x10hosting.com, because it's free and I'm familiar with setting up the Wordpress site (after some frustrations). You may choose to use another hosting site that supports wordpress (most hosting sites should do, as long as they support mysql databases). 

  • Here are the instructions for setting up your production Wordpress site on x10 Hosting

1. Go to https://x10hosting.com/

2. Sign up for a free account. Be sure to write down your username and password.

 3. Confirm the email that was sent to your email.

4. Create a user by entering your first name where it asks you to (not that important, it's just for x10hosting to not call you "User".

5. Click on the "open cpanel" button

6. Click on the "databases" tab and click on "Add MySQL database". Give the database a name and then write it down somewhere where you won't lose it. 

Hosting

7. Click on the gear icon next to your database and select "manage users"

8. Click on "Add user to database" button

9. Create a username and password. BE SURE TO WRITE IT DOWN SOMEWHERE WHERE YOU WON'T FORGET IT.

10. Check the box that says "grant all privileges" and then click on "Update privileges

11. Click on the tab that says "My Websites" and then click on the "Add Website" button

12. Give your website a Site Title and then click on "Add Website". Click on "Continue to My Web Sites"

13. Click on"FTP users" and click on "Add FTP User". 

14. Create an account name and password. BE SURE TO WRITE IT DOWN SOMEWHERE WHERE YOU WON'T FORGET IT.

 

Hosting

15. Click on the link that reads "Connection Guide". This will give you the server host name and username. You should know the password for the ftp user already. Use this information in either FileZilla or CyberDuck or whatever FTP client you are using to send and receive information from your web application. If you don't have an FTP client, I suggest downloading FileZilla: https://filezilla-project.org/. 

16. Next, copy and paste all of the information from your wordpress folder into the site you're connected to via FTP. Here's a screenshot of what that should look like: http://screencast.com/t/CyKVfTZYyu

17. Finally, we are going to change the information inside the wp-config.php so that we can connect to our production site and then re-upload that file via FileZilla. We are going to just change the database name, username, and password: http://screencast.com/t/PEpVG8zJ

Update 1

For your update, try and get your website and database working both locally and on a hosted website. That is,

1. Have your Wordpress site up on your local machine and connected to a database

2. Have your Wordpress site up on your hosted site and connected to a database

Dynamic Web 2: Week # 1

By Omar Patel

Dynamic Web 2: Week # 1

  • 847