/dev-nix-shells-phoenix

nix-shell for Phoenix

Primary LanguageNixThe UnlicenseUnlicense

nix-shell for Phoenix

WIP

What is it?

A nix-shell template to set a Phoenix development environment up with direnv integration (if installed).

Built gathering inspiration from several sources, it makes available:

Working with a local PostgreSQL instance

initdb --no-locale --encoding=UTF-8
pg_ctl -l "$PGDATA/server.log" start
createuser postgres --createdb
mix ecto.setup

Because we are too lazy to run all these commands by hand each time Iwe need to setup a project and because automation is good: ejpcmac's Setup script for Phoenix projects using Nix and PostgreSQL

My fork of ejpcmac's script (never knows).

To stop our local PostgreSQL instance:

pg_ctl stop

Resources

localhost:4000

Direnv

Miscellaneous

Nix

TODO