YouTubevideo· Aug 2, 2024· 14:43
full stack devs get the short end of the stick when it comes to having tools in the browser to build a project from start to finish without ever having to leave the cloud you usually have to have some sort of local development environment in order to build your project whether you're building in rails python laravel JavaScript developers have things like code sandbox or replit or stack Blitz not anymore because project idx from Google is something
that I think the full stack developer community regardless if you're building in Lille rails python what have you this is something that we've been missing out on for a while and I think it's good I had tried out project idx a while ago maybe a couple of months ago and there was things that I just didn't think were quite working the way that I thought they should in the sense that I wanted to start a new project without having to
have a bunch of different plugins or setup and everything like that and while I don't think everything is perfect by any means just yet I think this is going to be a new start for brand new developers or for people who just don't want to have a local development environment up and running with a backend framework like rails or laravel or D jeno why don't we get started and take a look so the first thing that you'll see is there are project templates that they give you up and
running for example there's things like nextjs and flutter asro flask and note Express there's also one for Lille so taking a look at the details of what a workspace actually is within project idx it's everything that you might need to develop your application they say right here contains everything you need to develop your application code a code editor plugins relevant to your project
tool chains that support app development the cool thing is that is contained to a single workspace a single project if you're building in Python your developer tools might be different than if you're building in rail or your developer tools may be different if you're building a nextjs app for example so while project idx is in beta it looks like you can have one project at a time you also if you are a developer profile within Google you can have up to five different
projects so let's create a new one we'll just call this something like project idx test there we go we'll go ahead and create that again the cool thing that I love about this is you automatically give beginners whether new to laravel or just new to development and coding in general one of the things as I'm learning and teaching and trying to get
new developers building things and cool things on the web is the very start of web development is incredibly hard you have to download vs code you have to download node you have to download mpm you have to download what have you for whatever framework or tools that you're building in project idx I think think tends or is hoping to maybe cut that down so when you start a new project
you're not automatically Grant uh greeted with all of these different things that you have to download and install and then figure out how to use and then what's mpm runev and all that stuff of course you still have to know some of those commands when you're developing but the get-go the actual bootstrapping of creating this project is automatically done for you so you don't have to worry and you can just start coding I think the thing that I'm
going to use product idx for is showing code to new developers who might not have vs code installed on their system or who might not necessarily know how to install a mpm package or how do I run node or run PHP on my server there's a lot of new tools in the Lille ecosystem there's larl herd that makes this a lot easier but I think project idx is going
to be a great starting point just dive into the code start building start typing and then figure out what you need to learn from there so a lot of this will feel very familiar it feels like vs code in the browser where you have a terminal if you would like it you have things like the web browser up and running if I wanted to let's say in my terminal so terminal new terminal wanted
to run and create a new model PHP artisan make model to do all of it works I created it with just that larel template and we have PHP running we have the ability to run terminal commands so now I can follow a tutorial on larc cast I can follow a tutorial on Josh's YouTube channel and I can follow along without having to have this whole development environment up
and running so I think this is going to be great for quick demos but it's also going to be great for people just to start building things without having to have that whole setup of running one thing that I'm interested and I don't know the answer to maybe we can find it out together I am interested in knowing can I like set up a whole system maybe I want Live Wire installed and maybe like I want like a specific git repo can you
open up a get repo in Project idx let's take a look create a new project idx template so idx offers a wide range of built-in templates if you're building your own framework library or service you can prer technology back for your projects okay so it looks like you can create like an open in idx button in your code base so working on team with other contributors
you can customize your environment that way but you can also have these open and idx entry points o git repos interesting so if I was to import a specific git repo let's go into my GitHub real quick maybe I wanted to do send notes that's the one that I have the
full tall stack tutorial on so if I want to say in here it looks like what was that GitHub yeah just put it before it so URL equals and then GitHub let's see import git repo we'll import this let's see how it looks so we have the whole GitHub repo let's see if pH p is
actually installed so if I want to let's say open up a new terminal for example okay so it looks like you want to generate a default idx configuration file let's see let's just say yes see what happens your environment configuration has changed you may need to rebuild your environment let's say take me there rebuild environment extensions okay so looks
like this dev. n is probably the one that we would want within this where we can have a specific developer environment set up for this is really cool open a specific git repo I like that where is the other page let's see turn any public repository into a template and then you have this idx template. NX I don't know too much about NYX files so I might need some
help with this one but I think the gist of it is you can do this I could set this up where I would say Okay click this link and now lille's installed Livewire is installed php's installed and we can run one command and get going so you don't have to do all of this setup because think about this whether you're new to larel or new to development in general or new to insert your own framework language Etc here
there's so much setup that needs to be done if you want to start from a specific template a specific endpoint you have to know git where now I'm installing a get repo and then I'm installing all the packages for it what if you could just click this button and be up and running where now you can start writing code and follow along with the tutorial follow along with the video and not have to worry about okay did I
install this folder properly or I'm on Windows and this person's using Mac OS and now the instructor has to figure out how to all these instructions it's going to be simpler for people like me for Content creators for Developers Educators for people who are wanting to teach people something without having to start from the absolute beginning okay I'm curious if we have PHP installed let's see PHP PHP 83 I'm curious how quick it would be again it's probably best to set this up all in a NYX file
but I'm curious how quick I can get this gabo up and running what's this over here uh Source changes so that's nice you can have get repo right here for any kind of source changes it's weird that it pulled this and I'm curious where this is from the one thing that I noticed when I was building a another project looks like I have one already upun running here I I had to run PHP
Artisan serve in order to get hot reload actually sorry in order to have live wires set up so I was able to install Livewire do all of that stuff and run like custom extensions and have all the fancy highlighting and PHP intelence even within project idx but in order to get live wire up and running if I was using like the built-in browser that it gave it was having this kind of page
expired error show up but running PHP Artisan serve and clicking on this I was able to get this up and running so hello there YouTube so this is live wire behind the scenes let's go back to our project looks like it's still installing PHP so I'm wondering in this to-do list project let me see if I can find a NYX file here
because this is one that I created from scratch yeah dev. NX okay yeah so we can pull in specific packages and so this is probably like going to be the a good way to set this up I can pull in specific packages set environment variables in the workspace that's really cool so it'd be cool if I could also set up specific extensions it looks like I might be able to do yeah extensions that would be awesome to be able to have extensions
automat automatically running where I could say hey click this link you can follow along with a tutorial that we're building on YouTube and now you have all the extensions and your environment looks exactly how my environment looks like very cool PHP Artis and serve okay so it looks like the web command is running PHP Artisan serve but for some reason it wasn't working with Livewire might have to dig into that a little bit more and I'm overlooking something let me know in the comments maybe let me
like refresh this to do list one this is the one with Live Wire installed and it should open up a new a new preview browser I don't know how to find that preview browser let's see oh there we go so this one right here pull open this maybe I can is any way to like pop this out let's see okay anyways this is like the preview browser that they give my
screen's condensed for making this video but if I was to say something like hi there and click add a new Tod do it shows this page expired but if I was to run PHP Artisan serve and click on this then this one does not give I'll show that this is still working this is still live wire right here so add a new to-do update live wire so it that works but
for some reason that was slow 4G too for some reason that the web browser out of the box even though it looks like in this IDs X it uses PHP Artisan serve so I might have to like mess around with that maybe the web preview isn't linked within maybe it's a port like it's not serving as Port 8000 I don't know you let me know but the other thing that I wasn't able to get up and running as I smoothly as I thought
it would be is hot reloading so if I was to open up a new terminal command because I'm running PHP artist and serving one if I was to run mpm run Dev you would think that this would because we're running V allow cuz that should push to and maybe like it's the environment variable Local Host okay that all looks good but if I was to open up
this like this doesn't pull this open here this if I was to do the to-do and say something like for this button let's say I a need Todo here and I'm saving it so that's contrl s over on here it doesn't update it a refresh add a new to-do here so it does then so it doesn't
have like hot reloading like I would think new to do here folks save doesn't update until I refresh not the end of the world hot reloading isn't all that's cracked up to be it's nice but the those two things are the two things are a little bit more finicky and I bet with some some configuring of that NYX file I might be able to get it working overall
I really like what I'm seeing with project idx if you haven't given it a shot go try it out honestly I think it's going to be something that revolutionizes how we build on the back end in this case how do we create demos how do we show people something neat that we're building I think this could be one of the answers I think there's a lot of great options even within the larel space for example there's a wire box if you've never looked at that this
is like a live wire playground that's really similar to Cod sandbox but specifically for Live Wire but it's not everything in one it's just for showing off a new Livewire component for example where this would be a entire project that you can build out that you can say I have these models I'm uh working with this and if you could set that up where you say here's all of the stuff ready to go click this button open in project igx
and just get started I'm all for that because it cuts out the stuff that makes starting development building things creating things tough and if we can cut that out as much as possible and just start building just start making things just start having fun on the web again it's going to be for the better so keep creating