Node.js Integration in Wappler

Not sure what you mean?
The routing is automatically generated for you. If you follow what’s explained in the steps above.

That is true indeed. My advice is If you are not familiar with NodeJS and why/when is it used better wait until the final integration in 3.0 final before start working on a project, as the workflow and options may change.

1 Like

Hi @Teodor it didn’t before I created a Type Page route I selected a Type: URL and realised it was the wrong “Type” but it would not edit, just kept reverting back from page to URL. figured out where the file was and could see that the Page and the URL type syntax where included in the same reference to the page. So the only way I could fix it was go in the file and remove the URL reference type form the file now it works. Probably a bug, but wasn’t game to mention it!

What are you referring to exactly?
I am referring to the docs above (the first post of this topic). When you create a layout page and a content page from this layout using the Pages Manager, the routes are created automatically.
What were your steps exactly? Were they different than what is explained here?

Thanks @JonL, yep working through the Udemy course so figure I will eventually be a node.js and Express power user :crazy_face:

Converting a html page to and .ejs creating the route has to be done manually, because it doessn’t do it automatically, which was easy enough but it is when I experienced the “issue”, but I now know what is going on with .ejs files now and routing.

Ah ok i see, so you were not creating the pages in the Pages Manager as explained in this topic, but instead tried to convert them from html to ejs.

We will be improving that and also adding more integration with the pages manager for new files creation so people don’t create static files per accident

2 Likes

Well kind off, but I couldn’t work out the above example for routes, because the Routes properties doesn’t look like the images above, there is the “Type” drop down option is where I experienced the error.

It would be good to know when to use: “URL” vs “Page” vs “Content” so to find out I tried them.

@StevenM sorry i was referring to this tutorial in my posts:

I am stuck on the connecting to database step. Where do I get my database details from?

check please @brad

Thanks Serhat, I got that far but what do I enter for my connection details? Where is my database located?

The same you enter for your other projects… just enter your database details :slight_smile:

So there is no local databse like MAMP Pro for example?

If you are running your database on a local WAMP/MAMP server just connect to it.

1 Like

2 posts were split to a new topic: Firebase real-time database

For the routing steps, I don’t have an index.html only index.ejs found in the /views directory.

Is there some step missing where i’m supposed to generate the html file? @Teodor

Don’t let your previous knowledge of how websites are build get in the middle. Just follow the tutorials and docs.

1 Like

I don’t have any knowledge on that, I was a disappointed bubbler user.

I am trying to follow the tutorial but there is no index.html file in my project??

@JonL

So why are you expecting an index.html?