This device is not compatible.

PROJECT


Build a REST API with Elixir and Phoenix

In this project, we'll create a REST API using Phoenix. This API will perform the basic CRUD operations on our database.

Build a REST API with Elixir and Phoenix

You will learn to:

Create an API in Elixir/Phoenix.

Create and use Ecto migrations.

Understand the fundamentals of MVC pattern.

Perform CRUD operations on a database.

Skills

Web Frameworks

API Development

REST API

Prerequisites

Basic understanding of Elixir

Basic understanding of Phoenix

Basic understanding of Ecto and PostgreSQL

Basic understanding of the REST framework

Technologies

Elixir

Phoenix

PostgreSQL

Project Description

An APIApplication Programming Interface is an interface through which programs can talk to each other without knowing their inner specifics. It can be used to create a server-side program that can interact with various client applications.

In this project, we’ll start with a simple Phoenix application and use migrations to create a simple model and database. We will create both a JSON-based and an HTML-based API in this project. We will also see how to make different endpoints for our model to perform basic CRUD operations on a database.

Project Tasks

1

Setup and Configuration

Task 0: Get Started

Task 1: Initial Setup

2

Course Schema

Task 2: Create Courses Schema

Task 3: Create Migrations

3

API Controller

Task 4: Create Controllers for API

Task 5: Fix the Changeset Issue

4

Duplicate Courses

Task 6: Test Redundancy

Task 7: Remove Redundancy

Task 8: Run Tests

5

HTML Controller

Task 9: Create an HTML Controller

Task 10: Run the Application

Congratulations!