3. Using Phoenix Framework to Generate JSON Resources for Elixir REST API Project

preview_player
Показать описание
In a step-by-step tutorial using the Phoenix framework, we generate a controller, view, and context for a JSON resource in a REST API project. We create an Account schema with database migration files and use Ecto to run our migrations and create new database tables. We then manually create an object and write it to our Postgres database. Follow along for a step-by-step tutorial for generating JSON resources with the Phoenix framework in a REST API project.

Subscribe now, and we'll walk through a hands-on introduction to Phoenix and Elixir. If you want to learn how to code in Elixir, this Elixir tutorial is the perfect introduction! I will teach you the basics of setting up a RESTful API and programming concepts, so you can start building powerful applications in this beautiful language. Start learning with this Elixir programming tutorial today and see how easy it is to get started and learn Elixir!

SUPPORT BACKEND STUFF
---------------------------------------------------

FOLLOW ME
---------------------------------------------------
Рекомендации по теме
Комментарии
Автор

10:33 Useful note: when using the generators from Phoenix (mix phx.gen.json), you can type "email:string:unique", and it will automatically create the index inside the migration file

DanielBergholz
Автор

Man, this tutorial seriers is awesome! Coming from Rails and needed exactly something like that know what goes where in Phoenix to kickstart. Thanks a lot for this!

krzyczak
Автор

Feels nice to be 800th person sub.. great content btw

ianmjohn
Автор

Hello, i have problem with migration at 18.08.
mix say that:
** (Postgrex.Error) ERROR 42P01 (undefined_table) relation "account" does not exist
but i see it, there is

sbodezzi
join shbcf.ru