Programmer: Roman Martushev

Slides:



Advertisements
Similar presentations
Connecting to Databases. connecting to DB DB server typically a standalone application Server runs on localhost for smaller sites –i.e. Same machine as.
Advertisements

Connecting to Databases. relational databases tables and relations accessed using SQL database -specific functionality –transaction processing commit.
{ Model View Controller ASP.NET By Scott Crooks & Maggie Wettergreen.
Introduction to Model-View-Controller (MVC) Web Programming with TurboGears Leif Oppermann,
ExtJS 4.0 JavaScript MVC Framework. Who ExtJS is provided by Sencha ( o Sencha Touch o GWT o CSS Animator o IO (Cloud Data Management)
What is it? –Large Web sites that support commercial use cannot be written by hand What you’re going to learn –How a Web server and a database can be used.
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
Multiple Tiers in Action
CS 290C: Formal Models for Web Software Lecture 1: Introduction Instructor: Tevfik Bultan.
LHCbPR V2 Sasha Mazurov, Amine Ben Hammou, Ben Couturier 5th LHCb Computing Workshop
Introduction to the JDK Java for Computational Finance
Tutorial -01. Objective In this session we will discuss about : 1.What is MVC? 2.Why MVC? 3.Advantages of MVC over ASP.NET 4.ASP.NET development models.
Platform as a Service (PaaS)
QA Automation Solution. Solution Architecture Test Management tool CI Tool Automation framework Testing Project BDD Tool Text of test to Testing Project.
UNIT-V The MVC architecture and Struts Framework.
Service Oriented Architecture Bryan Ollendyke.
ITM352 PHP and Dynamic Web Pages: Server Side Processing.
CS-0401 INTERMEDIATE PROGRAMMING USING JAVA Prof. Dr. Paulo Brasko Ferreira Fall 2014.
Web Application Programming Carol Wolf Computer Science.
Codeigniter is an open source web application. It occupies a very small amount of space in the memory and is most useful for developers who aim to develop.
URails Meeting 001. HTTP Old/Young guys with beards decided “We need to communicate. Let’s use text!” Hypertext Transfer Protocol HTTP is just sending.
Lecture 19 Web Application Frameworks Boriana Koleva Room: C54
HOMEWORK REVIEW This is an if else statement layout if (condition) { code to be executed if condition is true; } else { code to be executed if condition.
.Net and Web Services Security CS795. Web Services A web application Does not have a user interface (as a traditional web application); instead, it exposes.
Michael Still Google Inc. October, Managing Unix servers the slack way Tools and techniques for managing large numbers of Unix machines Michael.
Debugging Strategies from Software Carpentry. Agan's Rules Many people make debugging harder than it needs to be by: Using inadequate tools Not going.
Mini Portfolio Kacee Green Digital Media Final Presentation.
What's New in Kinetic Calendar 2.0 Jack Boespflug Kinetic Data.
Rails & Ajax Module 5. Introduction to Rails Overview of Rails Rails is Ruby based “A development framework for Web-based applications” Rails uses the.
Intro to Programming Web Design ½ Shade Adetoro. Programming Slangs IDE - Integrated Development Environment – the software in which you develop an application.
Telerik Analytics What kind of Analytics is Application Analytics?  November 6 th, 2015  Eigil Rosager Poulsen – Telerik 
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
MVC WITH CODEIGNITER Presented By Bhanu Priya.
WHAT IS PHP FRAMEWORK? Set of Classes and Functions(Methods) Design for the development of web applications Provide basic structure Rapid application development(RAD)
© 2012 LogiGear Corporation. All Rights Reserved FitNesseFitNesse Authors: Nghia Pham 1.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
INFO 344 Web Tools And Development CK Wang University of Washington Spring 2014.
Selenium server By, Kartikeya Rastogi Mayur Sapre Mosheca. R
Introduction to Model-View-Controller (MVC) Web Programming with TurboGears Leif Oppermann,
The New Face of ASP.NET ASP.NET MVC, Razor, and jQuery Ido Flatow | Senior Architect | Sela | This session is.
CGS 3066: Web Programming and Design Spring 2016 Introduction to Server-Side Programming.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
Under the hood of a small laravel app Speaker: George Drakakis Github project:
Prepared By: Techtic Solutions Why Choose Laravel Framework for Web Application Development?
CGS 3066: Web Programming and Design Spring 2017
Why Laravel Development is the Best PHP Framework
J2EE Platform Overview (Application Architecture)
Why Laravel Is The Best PHP Framework In ?
What is Laravel ? By Georgi Genov.
Data Virtualization Tutorial… OAuth Example using Google Sheets
Student portal & web applications
Unit – 5 JAVA Web Services
Introduction to Web programming
ASP.NET developing web applications based on Microsoft.NET Framework.
7 Reasons Why Laravel is Prominent in 2017
Task Management System (TMS)
Enterprise Application Architecture
CSCI/CMPE 3334 Systems Programming
Introduction to Ms-Access Submitted By- Navjot Kaur Mahi
…and web frameworks in general
Improving public accessibility and user engagement
Module 01 ETICS Overview ETICS Online Tutorials
Developing a Model-View-Controller Component for Joomla Part 2
Middleware, Services, etc.
…and web frameworks in general
MVC – Model View Controller
Introduction to AJAX and JSON
Chap 1. Getting Started Objectives
Ajax and JSON Jeremy Shafer Department of MIS Fox School of Business
Web Application Development Using PHP
Presentation transcript:

Programmer: Roman Martushev Flight Tracker Programmer: Roman Martushev

Construction Using Laravel framework is a very helpful tool and I used lots of its resources Laravel is a free, open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model–view–controller (MVC) architectural pattern Also setup my project in docker What is docker? Docker is the world’s leading software container platform. Developers use Docker to eliminate “works on my machine” problems when collaborating on code with co-workers. What is a container? Containers are a way to package software in a format that can run isolated on a shared operating system. Unlike VMs, containers do not bundle a full operating system - only libraries and settings required to make the software work are needed.

The beginning I setup a route which then triggers a controller method https://github.com/romanmartushev/FlightTracker/blob/develop/routes/web.php Then I created a controller https://github.com/romanmartushev/FlightTracker/blob/develop/app/Http/Controllers/FlightController.php Then a view to see that my information actually went through https://github.com/romanmartushev/FlightTracker/blob/develop/resources/views/flightLayout.blade.php https://github.com/romanmartushev/FlightTracker/blob/develop/resources/views/flights.blade.php Using a simple JavaScript function I then reload the page every 8 hours to run my controller method Meaning I have to have my computer running 24/7 (Not a good implementation but it “works”) I did want to set up a cron job that basically executes a command automatically which does the same thing my controller method does besides returning a view but since I am on my localhost and not in production it was a bit more tricky so I decided against it.

Getting the information I used googles flights API to get my information I simply pass in my the parameter google expects to my getFlights method I simply used googles curl command they gave me to get the information I needed I then receive a json from the request and decode it which makes it into a collection (object) that I can get data from

Exporting to a CSV At first I simply took my information and exported it to a csv but thought this isn’t good enough https://github.com/romanmartushev/FlightTracker/blob/develop/public_html/fli ghts.csv

Migrations I then used Laravel’s migration tool which basically lets me manipulate a database so I created a table in my database https://github.com/romanmartushev/FlightTracker/blob/develop/database/migr ations/2017_09_12_185659_addFlightsTable.php

Model (flights class) I then created a model class Flights that allows me to manipulate the given table https://github.com/romanmartushev/FlightTracker/blob/develop/app/Flights.php So if we then return to my controller method you can see where I save the data to my database https://github.com/romanmartushev/FlightTracker/blob/develop/app/Http/Cont rollers/FlightController.php

Final Step Since I had my new information going into a database and had all my old info in a csv I decided to write a function to move everything over to my database which is called csv in my controller

Any Questions?