Ask coding questions

← Back to all posts
Custom pages Express node.js
AppliDev (87)

How do you create custom pages in node.js express? When I mean custom pages I mean pages that are created when someone sign ups so I don't have to manually go into the code and add a page every time someone signs up.

Commentshotnewtop
Geocube101 (258)

Can you post your repl code?
You wan't to create a page dynamically with node.js?
I normally create a uniform page that changes information on it based on the account that signed in (things like username and account data)

AppliDev (87)

@Geocube101 I don't have a repl for it but yes you could do that for the document but I want it to create a URL every time you signup like app.get("/{username}", open the file)

Geocube101 (258)

@AppliDev You could probably use the fs module to write html code to an html file and use that to send to the client