#Electron app with React, Shadcn & Sequelize.

12 messages · Page 1 of 1 (latest)

scarlet fossil
#

I want to build an app that uses React in the frontend, with the help of Shadcn for components, that can then interact with a local sqlite database file that is created BY this app..

Now im not sure what way to go about it as im told that there's a specific way about having npm packages installed for electron apps... or something?

scarlet fossil
#

anyone?

crimson current
#

Hey! Tbh it's kind of a nightmare to approach this whole thing as nobody seems to have a recently implemented template. I ended up using electron-vite in my monorepo. Still figuring out most details, but their react template was the best I could find, and it's also pretty straightforward to understand and use.

scarlet fossil
crimson current
scarlet fossil
#

that is unrelated to my post above.

crimson current
#

Well, it kinda is considering vite is resolving the packages...

scarlet fossil
#

no.. this is completely irrelavent towards what i had asked.

#

not once did i ask how to resolve package paths on the renderer... I asked how to go about importing npm modules, as ive been told that npm mpdules needed to be rebuilt or something electron apps.

round junco
scarlet fossil
#

so, if i were to import something like sequelize/typeorm from the main/ or shadcn from renderer/, they will compile as normal?

round junco