{"repo":"rajrajhans/phoenix-elixir-nix-starter","free":true,"listed":false,"github":"https://github.com/rajrajhans/phoenix-elixir-nix-starter","clone":"git clone https://github.com/rajrajhans/phoenix-elixir-nix-starter.git","description":"Starter template for setting up a Phoenix project with Nix, multi env support using shdotenv, lint setup, github actions for test, lint, and deployment to fly.io.","language":"Elixir","stars":22,"topics":[],"license":null,"category":"saas-starters-boilerplates","readme_excerpt":"Phoenix Nix Starter The idea is to have a ready to go phoenix project setup with Nix, along with some extra bells and whistles (see Features). The existing phoenix project is generated using mix phx.new with Phoenix 1.7.14, but it is easy (execute run delete.phx ) to rip out all the phoenix related files and start from scratch with a new mix phx.new command as needed. Features - Nix setup (using flakes) - Postgres & pgadmin setup (via Docker Compose) - Credo and Dialyzer setup - Livebook attached to the Phoenix app - Multi env support (using shdotenv) - run commands for common workflows - Github Actions setup for - running build & tests in CI (with nix cache & postgres support) - running lint (credo) and dialyzer in CI - deploying to fly.io via gh actions or via terminal (currently setup to deploy on manual trigger) - VSCode Tasks for running tests. Setting Up - Installing nix and direnv is required. - Clone this repo and cd into it. - Execute direnv allow in the terminal. - Execute help in the terminal to see the available commands. - Execute run deps in the terminal to install dependencies. - To customize this for your Phoenix project, you have two options: 1. Rename and use the existing Phoenix project (Phoenix 1.7.2) 2. Remove existing Phoenix project, and generate a new one 1. Rename and use the existing Phoenix project - Execute rename phoenix project MODULE=NewName APP=new otp which will rename the phoenix project and OTP application to NewName and new otp respectively","default_branch":null,"files":null,"tree":[],"storefront":"/r/rajrajhans","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rajrajhans/phoenix-elixir-nix-starter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}