Intro to Phoenix: Let's Get Started

Phoenix Elixir
Transcript

English (Auto-generated)

it. Hello friends, thank you for joining the series. I'm going to introduce to you the phoenix framework in this series. The phoenix framework is a really powerful framework that is built on the elixir language. So if you want to build a web application and you want to use elixir then phoenix is really the choice for you here. Um I would say the most prominent framework for the elixir language and it really comes in with very, very powerful features that we will explore throughout the series. So before we actually get started here um um I want to say basically in this series, I'm going to assume that you have elixir installed and that you also know the basics of electrical. If you haven't encountered elixir before, it may be difficult to follow the series. So this is why I would recommend starting with this series that I've already done on the basics of elixir. Um there will be some newer things that I will cover in this series, in elixir itself that haven't been covered in, in in like the intro introductory lecture series that said if you just cover at least at least know the basics of elixir with that series, you will be well prepared to move forward with this one. Um The way we're going to learn is we will basically build a project together from the start from this lesson, I will be building a project and this project will basically be a simple developer notes application, so you always encounter snippets of code and you always um probably when I save it, share it with others and so on. Honestly it's very similar to something like you might see in just so just uh good hub. So it's just basically we will start with something similar to, to suggest where you give a title and then you put a snippet of code here and then you save it and yeah, that will be the basic starting point there and we will develop it, we will add more things to it to make it more interesting. Again, I'm breaking off from the tradition here of building a blog because there are probably many tutorials or courses out there that build a blog instead. I will build this particular one and you know, we can deploy it at the end and and have it up and running. So it will be a fun little project for all of us to work on it together. Now, if you are serious about learning phoenix, what I would recommend is you build a parallel project alongside the project that I'm building right here sometimes, you know, especially with with podcast, you're able to copy, paste the code easily throughout the entire series. So that's why what I would recommend to you to solidify your learning is to actually build a parallel project. You can pick any project you want if you don't have an idea, you can build a simple blog again or something like this that will, you're, you're interested in um and this, so basically when we learn a particular concept, let's say, connecting to the database with ecto what you can do is you can simply just do the same thing. But for your own project I find that with many students that have talked in the past work a lot better than just following a project along awesome. So let's get started here. So initially we wanna install a mix um task that's called phoenix new and this will actually help us generate a project from scratch. So you can go to your terminal and then you could simply run this mixed archive that installed hex phoenix that new by the way, if you're new to code cast, what you can do is you could simply copy the code, Sorry for that. You can simply copy the code from the left, right here, all the code that we will see in every cast will be available for you here on on the left. So you can simply copy paste. For example, this command, you don't have to type it again, by the way. This command is is the one that you will see on the phoenix website itself. So I actually got the command from here so you can go ahead and copy it. Philosophy, Are you sure you want to replace? Because I already have it installed? So I just say okay, go ahead and replace it. And that installs the phoenix new task. Okay, This, install a task using Mix. If you followed my series before Mix is a way to initiate project with the agency, just for initiating projects, you can run a variety of tasks with elixir using Mix, but one of them is actually creating project. So in this particular case here, what we want to use Mix for is to initiate our project. So let's go ahead and run the second command right here, which is mixed phoenix dot new def underscore notes. Again, if you want to follow a parallel project there, you could say Mix phoenix that new and then just call it blog for instance or whatever project you have in mind. So when you run this one here actually generate a lot of files for you, which is the skeleton of a phoenix application. Okay, it's a skeleton of the phoenix application. So if I go right here, I will see a folder called um death note. If you open it, you will see it has many files and folders right here. You see, alan assets can fake lib priv for private test and then for matter, get ignore mix, read me and so on. So what I will be doing throughout this series, I will be walking you through how to um how to build our application using this project structure right here, uh, you know, I'll keep it like this for for this um, this cast um, so yeah, just make sure you have this project generated, we will follow along this project as for the rest of the series. Thank you for tuning in, and I'll see you in the next cast.
167 Views 1 Likes 0 Comments

Welcome to the Intro to Phoenix Series!

Comment
Leave a comment (supports markdown format)