OnPoint Tech Blog
  • Blog
  • Tags
  • About us
  • We are hiring

Showing posts from Elixir

  • Home
  • /   Tags
  • /   Elixir
How to encrypt your data with Ecto
  • Dung Nguyen Dung Nguyen
  • 20 Aug, 2021

How to encrypt your data with Ecto

If your data is encrypted, even if it’s leaked, no one know what is the data. That’s great. In this post, I’m going to show you how …

    • elixir
    • ecto
    • crypto
How to validate request params in Phoenix
  • Dung Nguyen Dung Nguyen
  • 14 Aug, 2021

How to validate request params in Phoenix

Credit: filter image taken from svgrepo.com In web developments, server receives lots of request data from client side. And when working with request …

    • elixir
    • phoenix
    • param validation
Easy data validation with with Valdi in Elixir
  • Dung Nguyen Dung Nguyen
  • 06 Aug, 2021

Easy data validation with with Valdi in Elixir

Credit: this icon is from flaticon.com In previous article, I shown you how to implement you own validation module. I you haven’t read it, you …

    • elixir
    • validation
How to build an Elixir validator from scratch
  • Dung Nguyen Dung Nguyen
  • 31 Jul, 2021

How to build an Elixir validator from scratch

Validation is a must have part of web application. You have to validate request parameter before processing, you validate data before inserting to …

    • elixir
    • validation
Build your own library to render json response in Phoenix
  • Dung Nguyen Dung Nguyen
  • 23 Jul, 2021

Build your own library to render json response in Phoenix

In my previous article, I introduced my library call JsonView to render json response easier. You can read it here: Render Ecto schema to json with …

    • elixir
    • phoenix
    • json view
Elixir phoenix - Render Ecto schema to json with relationships
  • Dung Nguyen Dung Nguyen
  • 10 Jul, 2021

Elixir phoenix - Render Ecto schema to json with relationships

When writing API with Phoenix and render json to client, For some fields I want to keep it original value. For some fields, I want to do some …

    • elixir
    • phoenix
    • json view
    • ecto
Elixir for Beginner - All you need to know about guard
  • Dung Nguyen Dung Nguyen
  • 30 Jun, 2021

Elixir for Beginner - All you need to know about guard

What is Guard in Elixir In previous post, I explain what is Pattern Matching and how to use it. Elixir pattern matching in a nutshell Pattern matching …

    • elixir
    • elixir-beginner
Elixir Pattern Matching in a nut shell
  • Dung Nguyen Dung Nguyen
  • 29 Jun, 2021

Elixir Pattern Matching in a nut shell

If you are new to Elixir, Pattern Matching may be something strange to you. When you get familiar with it, you will know how powerful it is. And …

    • elixir
    • elixir-beginning
Compose Ecto Query From Client
  • Dung Nguyen Dung Nguyen
  • 30 Oct, 2020

Compose Ecto Query From Client

The story At our company, OnPoint, we are building an ecommerce website using Phoenix Framework. And I am working on admin to manage product, orders …

    • elixir
    • phoenix
    • query
    • ecto
    • querie
Chuẩn hoá và validate dữ liệu trong Phoenix với thư viện Tarams
  • Dung Nguyen Dung Nguyen
  • 01 Oct, 2020

Chuẩn hoá và validate dữ liệu trong Phoenix với thư viện Tarams

**Version mới của thư viện Tarams không tương thích với bản cũ. Các bạn đọc bài mới ở đây nhé How to validate request params in Phoenix Yêu cầu chuẩn …

    • elixir
    • ecto
    • phoenix
    • tarams
Parse và validate request param trong Phoenix với Ecto
  • Dung Nguyen Dung Nguyen
  • 26 Sep, 2020

Parse và validate request param trong Phoenix với Ecto

Khi viết các API hoặc cả các endpoint thì thông thường chúng ta sẽ có một số nhu cầu: Chỉ cho phép một số các tham số xác định được truyền vào. Chuyển …

    • elixir
    • ecto
    • phoenix

    Blog by OnPoint Team. Theme by Gethugothemes