wolfiton

wolfiton

Hello everyone,

Has anyone have some experience with nuxt and phoenix stack?

I want to know if the nuxt stack doesn’t make the phoenix server slower then it would be with just simple phoenix?

Thank you in advanced

Showing Posts 1 to 8

AstonJ

AstonJ

Do you mean https://nuxtjs.org? (if so it might be worth adding some additional info to your post :023:)

wolfiton

wolfiton OP

Thanks @AstonJ for the suggestions.

@AstonJ Yes I am interested if going SSR(server side rendered) is better then simple phoenix from a performance point of view, also scalability.

So the stack that I am reffering to is:

NUXT https://nuxtjs.org](https://nuxtjs.org/
Graphql(Absinthe)
Phoenix
Ecto

or Phoenix with views simple HTML rendered.

bulldog_in_the_dream

bulldog_in_the_dream

Using Nuxt.js will have no effect on Phoenix’ performance.

Nuxt.js is a way to achieve SSR using JS. You would typically reach for it if you need a single page application where render speed and search engine optimization (SEO) matters. This is not always the case (e.g. the SPA is behind a login and the user reaches a landing page first).

Using default Phoenix with its templates gives you SSR out of the box. You don’t need Next.js unless your app is heavily interactive with a lot of JS.

wolfiton

wolfiton OP

@bulldog_in_the_dream But wouldn’t i use a phoenix server that serves a graphql api and a node based server from nuxt and some frontend also from nuxt(Vue2)?

Thanks in advance

bulldog_in_the_dream

bulldog_in_the_dream

I don’t know Nuxt.js in depth, but it seems it can also just build static pages (i.e. with no Node server in production). In any case nothing is preventing your frontend from talking directly to the Phoenix backend, you don’t need to go via a Node backend.

What makes you reach for Nuxt.js instead of just using Phoenix?

wolfiton

wolfiton OP

SSR and I have a lot of js in my app that i am planing.

Also GOOGLE doesn’t index the spa’s anymore.

bulldog_in_the_dream

bulldog_in_the_dream

Ok. Then I would use Nuxt to generate static pages for production and let the frontend talk directly to Phoenix, there’s no loss of speed in that.

wolfiton

wolfiton OP

Thank you for providing all these answers and help me get a better idea of what I will have to do.

Really appreciate it

— All posts loaded —

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 92995 915
New
caslu
I want to open this thread for you all to discuss and help those who really like Ash but are still hesitant to use it in a real project. ...
New
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
GES233
I’m posting this in response to Jose’s recent tweet (Cr. link) : People are sleeping on Elixir for a coding harness: Hot-code swappi...
New
_mfierro
Hello, I wrote Stop My Hand, a Scattergories-like web application using Phoenix/LiveView as my learning project for Elixir (after readin...
New
marciol
It would be helpful to have a list of companies worldwide that hire engineers without prior experience in Elixir. Often, it can be quite ...
New
durvia
Anyone running long-lived stateful processes on BEAM? We’re building an AI agent runtime and would love to compare notes. We’re a small ...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
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
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
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