josefrichter

josefrichter

Hi, I came across Rails Bytes only recently - it lets you run “scripts” with commands you typically run when adding some gem into application. I was wondering whether something like that is also possible in Elixir/Phoenix?

Not that it’s super useful and important, but it’s kinda nice to have in the prototyping stage when you quickly want to stitch together a bunch of components and try something. A bit like scaffolding generators on steroids.

Showing Posts 1 to 4

chrismcg

chrismcg

This was linked to in the Thinking Elixir podcast José was on.

Haven’t looked in detail but seems similar on the surface.

josefrichter

josefrichter OP

ah very cool! that app generated with tailwind, authentication and kaffy already looks like a great starting point, saving you writing a lot of… well… boilerplate :slight_smile:

thank you and thanks to the author! gonna support him by buying the paid stripe tutorial I guess, been playing with that recently anyway :+1:

cnck1387

cnck1387

This topic was discussed a lot in the past in these 2 threads:

It never came into existence because there’s a lot of things in Rails that lets you build such templates and 3rd party services like RailBytes which don’t exist in Elixir. Based on some of the replies I don’t think we’ll get similar behavior so creating hard coded personalized templates with opinions is the way to go.

dimitarvp

dimitarvp

It’s my long-held opinion that Elixir could definitely use more code generators but hey, we are all busy and it hasn’t happened yet which is a shame. Elixir is generally easy to refactor – to the extent that this statement can be said for a dynamic language of course – and it’s so far a missed opportunity.

I wanted to contribute something like that for at least 2 years now but alas, time and energy are never enough so far.

— All posts loaded —

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
itzmidinesh
Hi all, I’m working on a Phoenix project where I need to make external HTTP requests and I’m trying to choose between Req and HTTPoison....
New
pragdave
How do I tell Hologram not to escape HTML when substituting into templates? {Textile.render(@product.long_description)} escapes the HTM...
New
rlipscombe
I’d like to create a file with 600 permissions (rw-------), but there’s a race condition if I create it and then change the permissions. ...
New
leoschweizer
Hi, we run different LLM models across a cluster, with each node loading a configurable subset. Model-specific queues let nodes consume ...
New
rlipscombe
When I use Mix.install with a git dependency, using git@github.com:... how do I change the SSH identity used? I’ve got two Github accoun...
New
adr
Hello all. I have a question as to best practices for code organization when implementing a liveview with a lot of responsibilities. Sup...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
raa-ziq
Hi everyone :waving_hand: I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews