Código de la presentación
Puedes acceder al código fuente utilizado en esta presentación en el siguiente enlace:
Transcripción
Extracto de la transcripción automática del vídeo realizada por YouTube.
thank you okay if you can't see the the text up there there's a whole empty row here okay look I know my shirt is offensive but please feel free to come closer if you can't necessarily read all of the examples okay what I'd like to start with
is when I've seen cloud talks before they have been for lack of a better word kind of fluffy you're allowed to groan there or throw things and also people have said complimentary things about my presentations and passed so I thought the best first
step to do here would be just to get rid of it and what I'm going to do and I'm not going to apologize for this we are going to spend this entire session on the command line so if just looking at code constantly is not your thing you may have come
to the wrong event okay so let's get rid of that course without the presentation then I can't tell you really who I am luckily back in the old days before we had Twitter and Facebook and PowerPoint and so on there was a way of getting to know each
other and that's what we're going to do here so I'm going to invite you to to finger me and and what that enables you to do is find out some information about me so let's see what fingering results in and just in case you were worried about
the lack of visuals I do have a Scott throughout the presentation as well okay so this is me Romeo would I'm a software engineer and technical team lead at the mva group so we've got sense here labs UK and vika obsession digital you can find me on
these various social networks rownum on twitter ronan on github rownum on identica from when we all decided that twitter was evil and we were going to migrate away from it and you can also find me on google+ sorry guys I didn't know I I saw profiles google
com in in Ian's presentation so i will put something more sensible in there next time you can also take a look at my blog on mere warge which I update on regular basis now if at the end of this presentation you like what you've seen and you think maybe
you could do a better job than me or maybe you would like to work with me then we are also hiring and we've got offices here in London Manchester Liverpool and Sheffield as well where I'm based okay so the first thing we need to do is we need to create
a sample project this is going to be our little toy project to see what it is we're going to do with the the Amazon platform and the various tools that available to us so the first thing I need is a name here and I conveniently thought well why not do
the sample app at the same time as I do my kind of long-term developer investment plan because i'm a developer obviously my kind of long-term pension strategy is to make an app that then gets bought by Facebook or Google for a ridiculously inflated amount
of money so I for a ski Graham right will learn what this is going to do over the course of the next 45 minutes okay so let's jump into the directory and as I imagine you're going to see a lot of during this session sorry during this conference when
I start off by just firing up a composer dot Jason so before we dive into the AWS stuff we just need a simple hello world app up and running so that's what we're going to put together i'm going to use cylex for this so don't worry if you don't
know cylex this is not the point of the talks this is just to illustrate the examples right so we're just going to ask for Silex and we're going to go install that grab all the dependencies and install those packages as well you can see it pulls in
a lot of the symphony components India and now the first thing we need is we do actually need a an application to pull stuff from now when I'm testing out a cloud platform I often like to make sure that I start with the simplest thing possible and the
simplest thing possible is to make sure that you're serving up static files so you're definitely just getting the code that you're getting so inside of here we're going to use the humans text one for this simply because it lets me actually
show the people who have helped contribute to this so i did this apple why ago and I've just had people kind of correcting all the horrible horrible mistakes I made and also some of the guys from the AWS team made some contributions to bring it up to the
the latest version so hopefully the stuff I'm showing you is officially approved amazon kind of things here okay so we've got a text file so if we can serve a text file we know we've at least past stage one so the next thing I do is normally just
throw a nympho dot PHP in there as well this is quite useful on platforms that you don't have access to so that you can find out you know what modules are being loaded what kind of settings are in there and also verify that PHP is actually running and
being processed now the interesting bit let's put our index file in here so we're just going to do a very simple hello world application it's all it does spits out the string no HTML no decoration anything like that okay and just a standard HT
access in there so that we can actually redirect things the controller when we get round having the full app let's just take a little recap of what we've created in there another thing I'm going to say as well I am deliberately going to blast through
this as quickly as possible you should not be remembering what I'm doing here my aim here is to put these ideas in your head so that you remember them and when you come to do anything AWS related then you'll have that little trigger that you did see
a tool and you know what kind of thing you're looking for also if you're interested in this it is all up on github and I am around for the rest of the conference so if you feel like say approaching me at the bar bringing me a drink getting me to talk
about code then I'm totally cool with that in fact that's why I'm here I'm here for you guys okay so a quick recap of what we've got in there then we've got a composer Jason we've got all the stuff that is pulled in and we've
got this incredibly simple application that we've dropped in the root so first of all we're using 54 so let's verify that's actually doing what we expect locally so going to fire up the web server there and that's running and now we're
just going to curl quick request against that you guys ready does get exciting oh look at that well actually can can everyone read that no no yes you guys asleep after lunch okay so we've got hello world down here I need more life okay otherwise this is
just not going to work okay so we're happy we've got an application that is actually serving up something so now we're going to get that all committed in the git repo so we just ignore the vendor directory because that's all the stuff that
we pulled in from our third-party libraries and we just want to fire up our repo add the stuff that we've got in there it's our basic hello world app right we're now ready to push this to the cloud the first thing I'm going to do is I'm
going to show you the magic part first so this is the whole kind of beautiful dream of you literally just push your code up to the cloud and it magically runs in the scalable environment so this bit is not going to make too much sense this is just going through
the motions to see what happens and then we're going to dive into the detail of all the tools and the various services available to you afterwards so first thing we're going to do is you can do all of this through the Amazon Web API but obviously to
do it in this format I'd have to use links which isn't going to work that well for all of this so we're going to do it on the command line the benefit of this as well is that we can actually script all of these things in the long term so grab the
tools if your wife happens to be playing World of Warcraft at the time this can take a little while especially if Windows is doing something weird to your network we're going to unzip that and you can see that what we've got inside of here is a number
of different so the the services themselves are in Python and you can see that we've got executables for all the various platforms and they're sort of work on windows mac and linux okay first thing we need to do then is make sure that we've got
[ ... ]
Nota: se han omitido las otras 4.257 palabras de la transcripción completa para cumplir con las normas de «uso razonable» de YouTube.