What is the use of index page?

Hey!

Should I work on index page or leave it and create new pages?

Cheers

What server model are you using?

Nodejs

Cheers

You should create pages. Index.js is the entry point for the app. It shouldn’t be touched.

I think @CMerlin might be referring to the default index.ejs page created by default for new NodeJS projects.

I would recommend to delete that, and start with a layout page, then create a content page using that layout page.

3 Likes

That would make more sense :slight_smile:

It’s been so long since I started a new project…

Once I did that and on the preview I could not see the CSS.

Cheers

Exactly!
It’s always the first thing I do when I start a new project.

Maybe Wappler should ask if we want to create a Layout page and ask if it needs to be assigned to the index page during the project creation process… :thinking:

The content page needs to have the comment on top to load it correctly.
Maybe your page is missing that.
Probably delete everything, and start with a new layout page, then content page.

Also, make sure to clear out the routes from routes panel.

But, what is the difference? Because you start froma blank page. Maybe I am not understanding what you mean with a nuw layout page

Do you have any tutorial?

Have you seen this one yet?

1 Like

Sorry no. The link Brad has shared should give you an idea on how its supposed to work.