Okay. Now let me know if you need more time. Uh, otherwise I'm just gonna move on from this. So now that we have the content in the CMS, uh, we can move on with the, with the actual workshop, right? This was just a prerequisite for, for everything. So, uh, first of all, uh, well, I also explained what the content of AI is, to our headless CMS. Uh, now we just imported all the data. So it's quite clear what the CMS can do for you with the APIs. So, uh, I think we can, we can skip that as well. If you want to know more about content, I'll share the link for, uh, for, you know, getting in touch or our website later.
Now, what is Astro? Astro is a front-end framework, or a way of building websites that is particularly popular these days, because, uh, it, it goes exactly against the trend of the last years. Because last year it was React. Right. It was Next.js, it was Gatsby, um, which kind of competed into the best or most used front-end framework. Now Astro goes, from a different angle. When they try to make the client bundles as small as possible, because Heavy Next.js or Gatsby sites come with a pretty bulky client size bundles. Right. Um, so Astro is trying to do it the other way to, to include as low JavaScript as possible for the website to work. Now with Astro, you can work with, uh, with React with Vue.js, with vanilla JavaScript, whatever you like. The important thing is that it gives you the frame for, for the website and you can include whatever you need, whatever you want. Right. It's as simple as that. Um, otherwise the pages are server side, uh, build and render. Uh, which is different from, from, uh, Next.js or it can be different depending on the page rendering strategy. Um, but the important thing is that Astro can work in the scope of serverless functions as well. Right. So you don't even, um, care all that much. Um, depending on what's our traffic on the website. But, uh, um, other than that, I stress a very good fit for a smaller, smaller sites. So that's Astro. Um, I'm going to share with the website in a second.
So let's see, what is the next step? So we've got up and running. We registered for the free plan. Um, you can also use my project. I'm going to. You know, add the API keys in a, in a second to the chat window. Um, and we called the CLI project an editor of environment. So this is the complete first step that we've already done at this point. Yeah. We have all the content in the CMS and we run the NPM run migrate. Um, so we should be good. Uh, next step would be to run the empty Astro side. So the first repository that I showed you, um, Now how do I bring Firefox back? There we go. So the first repository I showed you the react summit, 20, 23 workshop. Uh, this is actually an Astro site. So if you clone, uh, if you cloned it from the main, uh, branch, then you should be able to do the same thing I'm doing now, which is open the visual studio and, uh, look at the, the code here. So first thing we would need to do is run MPMI to install all the dependencies if you don't have that yet. Now I already installed those cause last workshop, I didn't do that. And it took me 20 minutes to, to install everything. Um, because of, you know, uh, there were, there were just too many modules. Um, and, uh, right now when I do NPM run dev, it should, uh, it should compile a site and let me visit the site at low close 3000. Okay. Could not import. Yeah, this is my mistake. Sorry. So let's remove that from the index page. Yeah. Let's remove that one for now. All right, let me see, but this should be good. I think. Yeah, this is good. So if you're seeing the same thing as I am right now, when you run the local host 3000, uh, you should see the homepage. There is a nice video playing in the background and, um, just a bunch of texts and a few destinations. Yeah. So this is the, this is the plain esoteric site. I can give you a tour around how it works. So, um, in the source folder, there is a pages folder, which contains an index dot astro. File. Um, this is, what's a astro uses to, to build, you know, your page structure. Of course, it contains, uh, all, you know, um, file-based routing, just like next JS or, or other, uh, frameworks, but that's not what we're going to be doing today. Uh, we just want a simple page.
Comments