Skip to content

A simple Elixir app that connects to a YugabyteDB cluster and performs basic CRUD operations.

License

Notifications You must be signed in to change notification settings

YugabyteDB-Samples/yugabytedb-simple-elixir-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Elixir Application for YugabyteDB

The code sample shows how to create a simple Elixir app that works with YugabyteDB using the Postgrex driver or the Phoenix framework.

The instructions below are provided for YugabyteDB Aeon deployments. However, the app also works with other types of deployments, including database instances running on your own laptop.

Prerequisite

  • The latest versions of the Elixir, Erlang VM, IEx and Mix.
  • If you plan to run the Phoenix sample app, then install all the required components. Note, you don't need to install Postgres for Phoenix as long as you'll use YugabyteDB.
  • Command line tool or your favourite IDE, such as IntelliJ IDEA, or Eclipse.

Start YugabyteDB Aeon Cluster

  • Start a free instance of YugabyteDB Aeon.
  • Add an IP address of your machine/laptop to the IP allow list

image

Run the App

Clone the application repo:

git clone https://github.com/YugabyteDB-Samples/yugabytedb-simple-elixir-app.git && cd yugabytedb-simple-elixir-app

Start the app using the Postgrex driver or Phoenix framework:

Stay in touch

Having issues running this application or want to learn more from the Yugabyte community?

Join our Slack channel!

About

A simple Elixir app that connects to a YugabyteDB cluster and performs basic CRUD operations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published