Skip to content

mitirmizi/sqlite-ecto-with-nerves

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using Sqlite3 and Ecto with Elixir Nerves

This repository is to host a basic tutorial for absolute beginners in Elixir and Nerves world, who want to implment an SQLite database on their embedded device.

Refer to this tutorial for learning all the nitigrities about setting a base Nerves project, in which you can ssh and push OTA updates, and setting a base sqlite database.

The main library we'll be using is this sqlite_ecto2

Instructions to run cloned Repo

  1. Change add your network's credentials in target.exs
  2. export MIX_TARTGET=rpi4
  3. mix deps.get
  4. To burn the firmware on SD card, insert your SD card in the computer then mix firmware.burn If it says cannot detect SD card: for linux use command mix firmware.burn -d <location of SD card> in my case it was /dev/mmcblk0 you can check your from Disks utility in Ubuntu. mix firmware.burn -d /dev/mmcblk0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published