You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am starting to see similarities with express, but I still need to dig deeper to understand how things work and how I can better structure/optimize the code. This will be a running thread of my findings.
I'm breaking down my findings into separate issue threads, each thread will become an article/video.
These work the same as client-side auto-imports within your nuxt 3 app.
Example:
directory structure.
server/utils/logger.ts
// preference: I like to name files in sub-folders with the folder as a prefix
server/utils/scraper/scraperBlogs.ts
You can now call logger or scraperBlogs directly if they have a default export.
Named exports are also directly callable.
Let's say the scraperBlogs file has a testFunction named export, yo don't have to prefix it when calling, it can be directly referenced as testFunction()
I am starting to see similarities with express, but I still need to dig deeper to understand how things work and how I can better structure/optimize the code. This will be a running thread of my findings.
I'm breaking down my findings into separate issue threads, each thread will become an article/video.
The text was updated successfully, but these errors were encountered: