litestar-org / litestar-fullstack

Litestar Fullstack Reference Application with React, Vite, SQLAlchemy, Docker, Task Queues, and more!
https://fullstack.litestar.dev/
MIT License
329 stars 54 forks source link

Docs: Vue mentioned, but actually react front-end #128

Closed iLLucionist closed 8 months ago

iLLucionist commented 8 months ago

Summary

Here and there (such as repo description here) Vue is mentioned, but this is a React front-end, judging from package.json. Am I missing something? Was this or will this be in Vue?

ejbt11 commented 8 months ago

It was previously a Vite + Vue front-end. The documentation has not been updated yet as the front-end is still in a WIP.

There is a new PR for the documentation update.

iLLucionist commented 8 months ago

Interesting, thanks! Can you comment on why React was/is preferred over Vue for this example repo? (not to start a discussion on front-end frameworks).

ejbt11 commented 8 months ago

As far as I understand, the author created this repo for backend/full-stack best practices with Litestar. Vue can replace the front end as it uses a Vite plugin. The codes are still evolving and it's a very good reference and boilerplate.

Cofin, the author, can answer you why he migrated from Vue to React in their discord. The team behind this repo is very active and responds immediately in Discord.

As for myself, I am still learning Litestar and plan to use it as a pure backend web server taking this repo as a reference.

iLLucionist commented 8 months ago

Thank you!

cofin commented 8 months ago

Thanks @ejbt11 this summarizes everything pretty well. The main reason that React was chosen is due to the popularity. However, this will work with any frontend framework that is compatible with vite. I could show a few more examples in the litestar-vite plugin repository/README.

I've also updated the documentation.

Closed by #130

Jackiexiao commented 6 months ago

hi, we should update doc here as well @cofin

https://docs.litestar.dev/2/

image