#Is app file structure is good ?

46 messages ยท Page 1 of 1 (latest)

earnest gorge
#

Is app file structure good instead src file structure for Next.js app ?
Is it ok if I don't use Express.js in Next.js app and use default server provided by Next.js ?

willow bluffBOT
#

๐Ÿ”Ž This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

๐Ÿ•ต๏ธ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

โœ… You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

winter echo
#

It's great for most applications, sometimes you'll be smarter offloading some tasks to a separate server (such as compute heavy tasks)
nine times out of ten you'll be perfectly fine using route handlers, middleware, server components and server actions for what you need to do

earnest gorge
#

currently I am using app structure, and default server not express server.

winter echo
obsidian harbor
#

@earnest gorge use the nextjs server for basic crud operations

earnest gorge
#

you mean, no need to use express

obsidian harbor
#

as your scale increases, you might need things like cron jobs etc.. this is when you shift to express

#

nextjs server is good to get you started, but it does lack features of like express in terms of every single functionality they provide

#

makes sense?

winter echo
#

What we're both trying to say, is use Next, until you can't use next for what you're trying to do

obsidian harbor
#

^

earnest gorge
winter echo
earnest gorge
#

I am using app structure with next routing, not custom

earnest gorge
obsidian harbor
#

looks fine

winter echo
obsidian harbor
#

you can check my structure if you want examples of without src

earnest gorge
#

in route

earnest gorge
earnest gorge
obsidian harbor
earnest gorge
#

@obsidian harbor @winter echo guys thanks for reply ๐Ÿ™
I was really confused which one to follow but now its clear

#

I can follow this folder structure in every project

obsidian harbor
#

No worries, remember nextjs dosent really care about your structure (most of the time)

#

so you can get creative with it

#

thats just what i use + most agree with

#

with nextjs, spend less time planning, and more time building :D

earnest gorge
#

I recently started to build projects in Next.js cause its good for SEO and other things which react js is not providing. and also I am seeing it, its very good than react.
but need to learn new things

earnest gorge
#

that's true, no need to make routing, just create folders and that's it

obsidian harbor
#

btw mark an answer whichever helped you :D

earnest gorge
obsidian harbor
#

well you gotta chose one xD

earnest gorge
#

๐Ÿ˜‚

#

I mark it

obsidian harbor
winter echo
#

The thread gets closed by you marking as solved, but you can only mark one question as the answer haha

willow bluffBOT
#
โœ… Success!

This question has been marked as answered! If you have any other questions, feel free to create another post

Jump to answer