hnlprog

hnlprog

A beginner (of programming in general) is looking for an easy way (i.e. least new plates to handle) to implement a basic macOS UI for a local, offline Elixir app (script?).

The app takes a file path (HTML file), reads it, modifies it, and returns the string (or writes to a new file in the same directory - whichever is simpler to implement). It is not a Phoenix app. It doesn’t use Ecto at the moment - all the data is in a CSV file and a JSON file. It has two dependencies, NimbleCSV and Jason. The app is working and I use it regularly through the command line, but I would much prefer to have some GUI.

The UI needs to be able to select a local file and give that information to the Elixir app. It also needs a text boxes for user input, which will be sent also. It would be awesome if it could ‘remember’ which file is selected while the app is open or until I choose a new file.

The options I have considered are, (1) use Swift (minimal experience) to create a UI and somehow run the Elixir app, (2) use Scenic (no experience) to create a window with some buttons and text boxes, (3) use Phoenix and LiveView (minimal, but the most experience) and (3.1) wrap it in something like Electron (no experience) or (3.2) just run it through a browser, or (4) rewrite the small app in Swift.

I currently don’t have a mental representation of how (1), (2), or (3.1) would work. It’s like I’m looking at a microwave and all I see is a black box with some white because I don’t have the necessary abstractions.

Everything I come across seems to be about the web or Swift communicating to an Elixir server running somewhere else. (Maybe this is 99% applicable to my situation with small tweaks and I don’t have the insight to know that :confused: ) As for Scenic, I don’t see resources accessible at my level. Some of the code reminds me of LiveView so I may be able to wrap my head around it, but again, I don’t know what I don’t know…So,

  1. What do you think (a) is the easiest to learn and (b) has the most beginner friendly resources?

  2. Could you perhaps point me to relevant resources that would help me get started without too many hiccups?

More specifically,

For (1) - light Swift UI - how complicated is it to call an Elixir app from another language / application?

For (2) - Scenic - is interaction with local files something that is ‘simple’ to do?

Showing Posts 1 to 1

Exadra37

Exadra37

You can read this topic for more info on available options:

The last contender option seems to be the best one of all:

You just need to wait for OTP 24 that is just around the corner :slight_smile:

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
ryanwinchester
apply_graft/2 doesn’t rewrite an add_many sub-workflow’s deps on an add step. Grafted jobs cancel with “upstream job was deleted” Version...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews