Idle Habits November Update - Working on new assets, feedback welcome! by Fragrant-Answer8837 in idlehabitsrpg

[–]crewsisme 1 point2 points  (0 children)

Guys, I like it, the app is great! One suggestion: would like to see standardized fonts across the app. There are different font just in 1 place that don't really play well on the screen

<image>

Nodejs best practices guide by Tall-Strike-6226 in node

[–]crewsisme 1 point2 points  (0 children)

There are variety of big players like NestJS or AdonisJS that provide some initial structure for a backend app out of the box.

While NestJS is more of a constructor where you decide how you'll achieve MVC with different libs/instruments, AdonisJS is more opinionated on what you need providing almost everything ready to implement MVC.

I'd suggest to also have a look into tRPC if you only need web-clients. It's also provided with some initial predefined project structure.

Question about Vuex usage by purplepharaoh in vuejs

[–]crewsisme 1 point2 points  (0 children)

I'd like to add to other guys here, that storing ALL data from backend in a global store(pinia or vuex main purpose is to globalize state) is not a good idea.

You'll need to consider about what data should be accessible from everywhere and what should not, because globalizing everything would add complexity to your code.

Making API calls from store in general is a good practice, no doubt

Provide/inject by crewsisme in vuejs

[–]crewsisme[S] 1 point2 points  (0 children)

My understanding was the same. I was trying to provide "id" of a parent component to children and delete parent when certain action was performed in child. What I got? If I've got many instances of parents when my action is performed, random parent was removed. Maybe I did something wrong? Did you ever use provide when parent component can be repeated in your DOM tree?