Last Reflection for Web Development 1

I really like everything we learned this semester. I was familiar with some stuff that we learned but in this class we went into it a bit deeper and I learned a lot of…

I really like everything we learned this semester. I was familiar with some stuff that we learned but in this class we went into it a bit deeper and I learned a lot of new things. I was able to get more familiar with javascript and jQuery which is great when it comes to working on front development of a site. It was also  great learning how to use more of php and it actually makes me want to know more of what I can do with this language. mySql was also great to get familiar with because it got more interested with backend development and it’s definitely something I would like to study further. API was definitely new to me and it was really awesome to see what we could do with and it also got me to start thinking about how you would be able to use them when creating websites. The project I liked the most was when we started to work with both php and mySQL together. I really got interested in and even though I didn’t have a chance to work on the secret diary tutors as a project for this class, it’s definitely something I will like to do once the semester is over and I have more time.

A project that I would like to work on is creating a 2d breakout game. I found an example of one while doing some research mozilla developer. As I read more it into it the more fun it looked like it would be to make. The page says anyone who has basic to intermediate knowledge of javascript, which is great because I already had some basic knowledge and after taking this class I definitely feel like I have intermediate knowledge of javascript. This game also consists of creating a canvas in html which I’m definitely familiar with. I’m definitely interested in how we would make the controls work both on the keyboard and mouse. Also how we can create the collision detection for the game. This is definitely something I would like to look into and create.

https://developer.mozilla.org/en-US/docs/Games/Tutorials/2D_Breakout_game_pure_JavaScript

https://developer.mozilla.org/en-US/docs/Games/Tutorials/2D_Breakout_game_pure_JavaScript

 

Last time using an API and my attempt at creating a Twitterbot

The last time we worked with an API was when we used google’s geolocation to find the postal of a partial address. It came out great I tried it with my location and a…

The last time we worked with an API was when we used google’s geolocation to find the postal of a partial address. It came out great I tried it with my location and a few others to see what would come up. When a user enters the partial address they will see the zip code for the address and then the address.

Postcodefinder

The next thing I worked on was making a twitterbot. I used Abraham/twitteroauth which is a php library that you can use with Twitter OAthu REST API. To make this twitter bot I first had to start by making  an application at appstwitter so you can get your API keys and access tokens which you need to work with. The first thing I learn to do with the twitterbot pull up my account info to make I was connected correctly. After that I made my first post from the twitterbot and made sure that it was working.

 

 

After that I went back to the REST APIs to do some research on how I could search tweets about a certain topic or twitter account. I finally manage to figure out how to do this by using the GET function and making a query on what I wanted to lookup. I searched up a few posts about Bungie.

 

 

The next thing I wanted to do was learn how you could be able to retweet a post. I started my research and found that you could by using the POST function and using the ID of the post that you wanted to retweet. To find the ID of the post that I wanted to retweet I had to first search up the tweet by using the GET function. After I got the ID of the twitter post I had to go back to using the POSt function to retweet it. I tried to get it to print out what I retweeted but I refresh then all I got was that i had already retweeted the post. When I checked my account I saw that I had.

 

This is all I manage to get done with the twitter bot. I did do some research on how I might have been able to retweet certain posts every hour or 2 but I wasn’t able to find anything that was helpful to me. So I do wish I had some more time to figure that out which I might in the future.

Learning to work with APIs

These last few days of our class we started to learn about Application program interface (API) and how we can start to use them. The first API we learned to use was Openweathermap. This…

These last few days of our class we started to learn about Application program interface (API) and how we can start to use them. The first API we learned to use was Openweathermap. This API allows us to show the weather on our own site if we wanted to. We also learned how to use php to make sure the weather always showed as fahrenheit. This is how it came out.

WeatherAPI

The next API we worked with was Google Maps. We used this API to create a basic google map page and then we also used it to work with google’s Geocoding. With Geocoding we were able to have the page find out exact location and this is usually used so a user knows where they’re. These are the examples we made.

Googlemap

Geolocation

 

Continuing SQL

This week we continued working with Sql and learn many new things. We learned how stop people from adding code to our sql database and we worked with a simple sign-up page. We worked…

This week we continued working with Sql and learn many new things. We learned how stop people from adding code to our sql database and we worked with a simple sign-up page. We worked with sessions and cookies to have a browser remember that a person is already signed in. Lastly we worked on securing passwords using codes md5 and salt.

MySql

Email Signup

Sessions

Cookies

Password