Elixir + Phoenix

Framework
Elixir + Phoenix
Category
Full Stack
Publisher
Jetify
// For Elixir setup guidance, refer to the Devbox docs for Elixir:
// https://www.jetify.com/devbox/docs/devbox_examples/languages/elixir/
{
  "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/main/.schema/devbox.schema.json",
  "packages": [
    "elixir@latest",
  ],
  "env": {
    // Elixir requires the shell to be in utf-8 locale
    "LANG": "C.UTF-8",
  },
  "shell": {
    "init_hook": [
      // set up mix to install dependencies
      "mkdir -p .nix-mix",
      "mkdir -p .nix-hex",
      "export MIX_HOME=$PWD/.nix-mix",
      "export HEX_HOME=$PWD/.nix-hex",
      "export ERL_AFLAGS='-kernel shell_history enabled'",
      "mix local.hex --force",
      "mix local.rebar --force",
    ],
    "scripts": {
      "build": "mix setup",
      "start": "mix phx.server",
    },
  },
}

ElixirPhoenix

Deploy on Jetify

To start your Phoenix server:

  • Run mix setup to install and setup dependencies
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:8080 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more

README.md

Level up your dev environment

No need to switch your style. Devbox works with any coding language, so you can get results as you write.
PREPARE FOR LAUNCH

Plans for teams of any size

Jetify Cloud offers pricing plans for Solo Developers to Large Enterprises, and everything in between. All plans include free credits, and you are only billed for what you use. Need something custom? Contact our team and we can help.
YOUR INPUT COUNTS

Join the community

Discuss ideas, uses and builds with the Jetify team and others.