#File Structure

9 messages · Page 1 of 1 (latest)

errant stag
#

Hello, Im new to payload and just know basic nextjs.

Can you give me an idea on how should the file structure be?

Like if I want to create about page, should I create a folder about/page.js? Or should I create blocks and create the page in the admin?

errant stag
#

If anyone can also share a github repo with just simple website, so I can study the file structure

sinful bluff
#

Hey @errant stag I would create a new project with payload locally

either npx create-payload-app -t blank or npx create-payload-app -t website

#

either should give you enough to poke around and get a lay of the land, but let me know if you have any specific questions!

errant stag
#

Hi, I did this already. Thank you.

Im currently reading the documentation. I'm just confused how should I create the other pages.

sinful bluff
#

Hey so there's only a couple of steps if you've created a project with npx create-payload-app. If you're looking for one with pages, I would suggest npx create-payload-app -t website. The blank template is barebones. While that's good for some people, since you are just starting it's likely going to leave you with more questions than answers.

  1. cd into the folder you created your project in
  2. run pnpm dev
  3. in your browser, navigate to localhost:3000/admin
  4. Follow the steps to create your first user

From there you should see the admin Panel like this:

errant stag
#

Hey, Thank you for the explanation. Just finished watching some videos about payload

wild garnetBOT