quazar

quazar

I am planning a new app which will have web app and desktop desktop counterpart using electron. This would be my first production phoenix project and also first electron project. I would love some suggestion from experience people who has worked with this or similar stacks. Below is my planned tech stack, if possible please share your experience, best practices and tech advice.

  • API written in phoenix framework
  • Authentication using Guardian
  • Web app build with angular 6
  • Electron app with angular 6
  • Webpack for asset management
  • No channels for now but will implement it later for fast search.

I’ll need some advice on

  • How to manage frontend angular assets for phoenix and electron. Its one of my main concern. Duplication can turn into nightmare.
  • API versioning to so I can deploy web app daily while update desktop app less frequently.
  • Website will have some public content part that should be visible to public, search engines and fast to load. I am not sure angular is best fit for such content. If I separate it out as plain html, it would create duplication. Server side rendering is possible with phoenix? If possible how’s your experience with it? I haven’t worked with anything beyond angularjs 1.2 and new version has changed a lot.
  • How do you deploy phoenix? I have a build server on linode 1 GB instance and its super slow. Takes around 20-25 min to build release.

Any suggestions are welcome…

Showing Posts 1 to 5

kokolegorille

kokolegorille

It seems You have already choosen your stack, but let me give You my 2 kopecks…

  • You can use Absinthe/GraphQL as API
  • You can use Phoenix Token instead of Guardian
  • Definitively use channels, there is good js support

But as always… it depends on situation :slight_smile:

PS: I build release on a Linux box, similar to the one I deploy too, and just transfer the tar file.

quazar

quazar OP

I haven’t decided on stack yet, still open to suggestion. I’ll look into GraphQL as api. I chose guardians because there’s not much boilerplate required for it.

Building locally is not an option for me, upload connection is not fast and reliability is not that great. Releases goes around 30 MB which takes multiple minutes and sometime connection breaks. So I chose remote build server.

kokolegorille

kokolegorille

There is no boilerplate with Phoenix Token, You might find this post from @michalmuskala useful

sribe

sribe

Most of it (the ERTS runtime) is the same every time. Expand locally and rsync up (with z flag), you’ll be moving very little data.

LostKobrakai

LostKobrakai

There not even need to expand something. Distillery can skip the compressing step and just update the plain files in the release folder.

— 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
water
I’m aware of 2 such projects, are there others? git: GitHub - team-alembic/realworld: A fullstack Phoenix LiveView application with back...
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
peck
Hi everyone. My team and I have been working on a fairly modest app based around video streaming and chat, but we’ve landed a customer t...
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
csmr
Hi all, I’m new here and would like to hear peoples views on my Elixir/Phoenix based game-engine! :smiley: Mutonex gamedesign was finish...
New
perzanko
Do we have maintainer of absinthe-graphql/dataloader here? We have a PR that we’d like to merge to the library. Relatively small additive...
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
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
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
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

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews