Lesson
Installation
Starting Phoenix Framework for Rails Developers - Lesson 2
You are not signed in! It would mean a lot to me if you
signed up through Github
- I would like to see who you are and I might occationally reach out to you with information aboout updates and questions.
In this lesson I am going to install Elixir and Phoenix and the external dependencies that are required.
Phoenix assets management relies on Webpack so it requires that you have either NPM or YARN installed.
If you know you have that installed, make sure you have a recent version.
Another requirement is using the PostgreSQL database. Most Rails developers have that installed. If you don’t, you can either install it with Homebrew or the Postgres.app
When you have made sure that you have Node and Postgres installed, you are ready to start with installing Elixir.
This course also assumes that you run Mac but if you are on another operating system and are a Rails developer, I think you know how to find the install methods for your OS.
So, on a Mac, the easiest way to install Elixir is using Homebrew. The commands are:
brew update
brew install elixir
Once you are done, you can run elixir --version
to get the current Elixir version.
You will also need to install the Hex package manager as well. Run mix local.hex
To install Phoenix itself, the command is mix archive.install hex phx_new
and the latest version. And as of this recording its 1.5.1
. So the command is:
mix archive.install hex phx_new 1.5.1
If you run into any trouble, you can read more about the installation on the official documentation. But in my experience, this should be pretty straight forward.
Lessons 19 in the course
-
Introduction in Starting Phoenix Framework for Rails DevelopersWelcome to the course "Starting Phoenix for Rails Devs". I am going to cover the basic concepts of building a modern web app using Elixir and Phoenix.
-
Installation in Starting Phoenix Framework for Rails DevelopersIn this lesson I am going to install Elixir and Phoenix and the external dependencies that are required. Phoenix assets management relies on Webpac.
-
Start a new project in Starting Phoenix Framework for Rails DevelopersIn this lesson, I will create the first project and use the built in code generators to generate HTML, migration and schema file and for the database.
-
Project Walkthrough in Starting Phoenix Framework for Rails DevelopersJust like when you start a new project with Ruby on Rails, there is a pre decided file structure setup. The big benefit with this is of course that y.
-
Update CRUD to use slug field in Starting Phoenix Framework for Rails DevelopersNow that I have added a slug field, I also want to make it possible to find a list by the slug field In Rails there is a find_by method in ActiveRe.Not yet published
-
Generate Tasks Context in Starting Phoenix Framework for Rails DevelopersGenerate Tasks ContextNot yet published
-
Install Tailwind in Starting Phoenix Framework for Rails DevelopersInstall TailwindNot yet published
-
Add interface for lists and tasks in Starting Phoenix Framework for Rails DevelopersAdd interface for lists and tasksNot yet published
-
Install Pow for authentication in Starting Phoenix Framework for Rails DevelopersInstall Pow for authenticationNot yet published
-
Edit Pow Templates with Tailwind in Starting Phoenix Framework for Rails DevelopersEdit Pow Templates with TailwindNot yet published
-
Add Swoosh Welcome email in Starting Phoenix Framework for Rails DevelopersAdd Swoosh Welcome emailNot yet published
-
Add fileupload with Arc for lists in Starting Phoenix Framework for Rails DevelopersAdd fileupload with Arc for listsNot yet published
-
Add lists channel and notify when tasks are changed in Starting Phoenix Framework for Rails DevelopersAdd lists channel and notify when tasks are changedNot yet published
-
Setup LiveView in Starting Phoenix Framework for Rails DevelopersSetup LiveViewNot yet published
-
Convert Create List to LiveView in Starting Phoenix Framework for Rails DevelopersMake Create List a LiveView componentNot yet published
-
Move lists listings to LiveView in Starting Phoenix Framework for Rails DevelopersMove lists listings to LiveViewNot yet published
-
Add Phoenix Presence in Starting Phoenix Framework for Rails DevelopersAdd Phoenix PresenceNot yet published
-
Add subscription and sync to lists in Starting Phoenix Framework for Rails DevelopersAdd subscription and sync to listsNot yet published
-
Conclusion Recap in Starting Phoenix Framework for Rails DevelopersConclusion RecapNot yet published