Getting Started with Phoenix

Getting start with Phoenix.

Creating a new app and generating some resources.

https://www.dailydrip.com/topics/elixir/drips/getting-started-with-phoenix

ESpec 1.4.0 is released

ESpec 1.4.0 is released!

Lot’s of improvements.

It’s time to try BDD!

build and deploy phoenix in docker

build and deploy phoenix in docker https://gist.github.com/mjason/115b5f9d5e3e9f14072061f34d234486

ElixirWeekly: The Elixir Community Newsletter, covering community news you easily miss, shared on ElixirStatus and the web, in one email every Thursday.

Credo v0.7.4 released

I released v0.7.4 of Credo, the static code analysis tool emphasizing code consistency and teaching. For details, please refer to the CHANGELOG.

Building web applications without a framework

Walk through building web applications using the structure provided by mix without a framework.

Talk given at Elixir London.

Using enums like C, Rails with Elixir macros

Moving from Ruby on Rails to Elixir and Phoenix, we use enums idioms heavily to represent integer flag values. Elixir (or ecto library) does not support idiom enums. But using macros, we can create enums easily.

Using enums in Elixir

Dress up your stdout

https://github.com/veelenga/dress

Bamboo (Email library) 1.0rc1 with Attachment Support

Bamboo 1.0.0-rc.1 has been published to hex. Update your mix file, check out the CHANGELOG and give it a try!

There are a few breaking changes and some new enhancements. Be sure to check out the CHANGELOG to see what you need to do to upgrade. Please open issues if you find any bugs in this release. If all looks good we’ll publish 1.0.0!

Thanks to all the awesome contributors that made this possible!

Blog: Nerves Firmware Updates

Learn how to perform over-the-network firmware upgrades for your Nerves project in our latest blog post! Embedded-Elixir.com

Shameless plug: Check out @elixirstatus' other community project:

Credo, a new static code analysis tool that acts as a code linter, but also focusses on teaching coding practices and code consistency.

Elixir hot-reloading for MIDI events generation (PoC)

In this GitHub repo I’m sharing an example of using Code.eval_file, GenServer and PortMidi to create some sort of music live-coding environment (as featured in an ElixirConfEU lightning talk), where the current “music position” is remembered across reloads.

Make sure to check out the Youtube video I posted to see a demo!

IoT Fun with Elixir! Sensing Hot Behavior with ElixirALE and GenServers

If you ever wanted to take a Raspberry Pi (or any linux-based platform exposing an i2c driver), a connected sensor, and wrap them both into an Elixir program but thought it might be too daunting of a task, this article is for you! In this article, we are going to focus on a simple i2c device that senses temperature and humidity and demonstrate how to write an application that will run as a GenServer. You can use this application (available as a hex archive) to request a measurement in your application by including it as a dependency.

Https://lute.io

IoT Fun with Elixir! Sensing Hot Behavior with ElixirALE and GenServers

If you ever wanted to take a Raspberry Pi (or any linux-based platform exposing an i2c driver), a connected sensor, and wrap them both into an Elixir program but thought it might be too daunting of a task, this article is for you! In this article, we are going to focus on a simple i2c device that senses temperature and humidity and demonstrate how to write an application that will run as a GenServer. You can use this application (available as a hex archive) to request a measurement in your application by including it as a dependency.

Https://lute.io

IoT Fun with Elixir! Sensing Hot Behavior with ElixirALE and GenServers

If you ever wanted to take a Raspberry Pi (or any linux-based platform exposing an i2c driver), a connected sensor, and wrap them both into an Elixir program but thought it might be too daunting of a task, this article is for you! In this article, we are going to focus on a simple i2c device that senses temperature and humidity and demonstrate how to write an application that will run as a GenServer. You can use this application (available as a hex archive) to request a measurement in your application by including it as a dependency.

Https://lute.io

Phoenix + Angular 4: Serve Angular 4 apps on a Phoenix Server

https://github.com/ChrisCates/thechriscates.ca Demonstration of how to server Angular 4 apps on a Phoenix server.

Phoenix with image upload to S3 in an API: Implementation and testing

My third blog post about Elixir, this time is about implement image uploading with Arc and S3 and how to test it.

https://medium.com/coletiv-stories/phoenix-with-image-upload-to-s3-in-an-api-implementation-and-testing-6ab5187175b0

Scout: Elixir Application Monitoring (free)

We’ve released a BETA version of our Elixir app monitoring library, scout_apm. Scout instruments Phoenix (controllers, views, and templates) + Ecto, and has support for custom instrumentation.

Detailed transaction traces are collected as well.

We offer generous (I think) free plan. Get started.

We’d love your feedback: lots more is planned.

Links:

Custom Error Pages with Phoenix

In this episode we’ll customize the 404 and 500 error pages in a Phoenix application.

https://elixircasts.io/custom-error-pages-in-phoenix

FunWithFlags: a feature toggle library for Elixir with web GUI

I’ve released FunWithFlags v0.7.1, a feature toggle library for Elixir with support for global state, groups and actors. Also, FunWithFlags.UI v0.0.3, its optional web GUI available as a Plug for Phoenix.

Fourth bors-ng monthly newsletter

https://bors-ng.github.io/newsletter/2017/05/01/tmib-04/

It’s another monthly burst of news about bors, the GitHub bot that tests your code before it becomes the master.

In the last month, we landed 17 PRs in the bors-ng repository.

Notable Additions

  • notriddle enabled wobserver on Heroku
  • Macarse fixed some mistakes in the developer documentation
  • notriddle added docker-based setup scripts to start a local instance on new contributor’s machines
  • notriddle moved the worker processes (the processes that actually do the merging and polling to make bors work) into a separate OTP app from the web UI
  • Macarse added Credo, and fixed some warnings that it produced
  • notriddle set the webhook controller to silently ignore actions that it does not care about
  • notriddle gave bors the ability to manage more than a single “master” branch

New Contributors

Want to see your name in this newsletter? Look at bors starters, a curated list of issues that are good for new contributors!

Who’s using bors?

This month’s featured user is georust, an organization that has been using bors-ng since before it was bors-ng.

The georust organization maintains (at the time of writing) thirteen Rust libraries for geospatial computation:

Got any suggestions for next month? Post a comment on the May pull request.

Screenshot

No new screenshots to show this month. Got any suggestions? Post a comment on the May pull request.

FakerElixir - FakerElixir generates fake data for you.

We just released version 1.0.0 🎉🎉

About

FakerElixir is an Elixir package that generates fake data for you. Whether you need to seed your database, create factories for your project, FakerElixir is here for you

Generate fake unique emails

# Create stream to generate fake unique emails
stream = Stream.repeatedly(fn ->

  FakerElixir.Helper.unique!(:unique_emails, fn -> 
    FakerElixir.Internet.email(:popular) 
  end)

end)

# Grab 400 unique emails
emails = 
  stream |> Enum.take(400)

Seed your database with a pre-defined cycle

iex(1)> FakerElixir.Helper.cycle(:zombies, ["Peter", "Audrey", "Laurent"])
"Peter"
iex(2)> FakerElixir.Helper.cycle(:zombies, ["Peter", "Audrey", "Laurent"])
"Audrey"
iex(3)> FakerElixir.Helper.cycle(:zombies, ["Peter", "Audrey", "Laurent"])
"Laurent"
iex(4)> FakerElixir.Helper.cycle(:zombies, ["Peter", "Audrey", "Laurent"])
"Peter"

… and all the basics

FakerElixir.Number.between(11.22, 13.88) # 11.24
FakerElixir.Internet.url(:safe) # "https://www.stefan-little.org/"
FakerElixir.File.extension(:audio) # "mp3"
FakerElixir.Commerce.sku # "4OY026FR"
FakerElixir.Bank.credit_card_type # "MasterCard"
FakerElixir.Date.backward(1) # "2016-08-18 05:58:04Z"

Don’t be shy to contribute, report a bug, improve the code :)

https://github.com/GesJeremie/faker-elixir