Folder Structure
Unanswered
Tawny-shouldered Blackbird posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Tawny-shouldered BlackbirdOP
Hey guys , this is kind of a basic question but m following a tutorial on youtube and when i use "npx create-next-app" it asks a bunch of questions and the folder struction is app and public , but the tutorial im following has different folder structure which is pages, style, public etc . My question is how to do that later folder structure.
Thank you 🙂
Thank you 🙂
7 Replies
![Avatar](https://cdn.discordapp.com/avatars/184479429404262410/a_35db4fb943e84d39bb02d6ec0f1d0b7e.gif?size=256)
DirtyCajunRice | AppDir
that is the old deprecated way. if you want to do an out of date tutorial, choose no when it asks for app dir
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Tawny-shouldered BlackbirdOP
Ohh okay thanks
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
Arboreal ant
Hey!
I was wondering about this. The documentation still talks about creating a pages folder, but this doesn't come with the initial install. I'm wondering is there a new routes system that's quietly being unveiled?
I was wondering about this. The documentation still talks about creating a pages folder, but this doesn't come with the initial install. I'm wondering is there a new routes system that's quietly being unveiled?
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
European sprat
Look at the app router doca
Docs
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
Arboreal ant
Will do, just in case you have a moment. I want to place some js code in my next js TypeScript app. It needs to moniter the local storage key value pairs. Can I dump it in the public folder and refer to it in the layout.tsx file?
![Avatar](https://cdn.discordapp.com/avatars/484037068239142956/44415017de6fed2ccd5d44b4b2051ac0.webp?size=256)
joulev
yes though i would use [inline scripts](https://nextjs.org/docs/app/building-your-application/optimizing/scripts#inline-scripts) for this