Jump to content

Recommended Posts

Posted

There's no such thing as a silly question, no one was born knowing how to code. 🙂 Since you got the 'Node.js is working' message, this means your Node app is running. As you are using Express, the how-to guide we have specifically for Express might also be helpful for you: https://wiki.helionet.org/tutorials/node.js/express.js

The app.js file the Express guide walks you through building is the backend of the site. To actually see your site, you would want to make HTML files (also maybe CSS and JavaScript too) for the frontend side. Then to connect the frontend to the backend, the official Express docs (https://expressjs.com/en/starter/static-files.html) recommend 'app.use' to serve up static files that you put into a folder named 'public', for example. If you still get stuck, googling for terms like "node express serve static files" brings up some how-to docs and YouTube videos that explain in a bit more detail how to connect it all together.

Since Node apps are a major cause of people's accounts getting suspended for high server load, make sure you keep an eye on your account load here: https://heliohost.org/dashboard/load/ to make sure it doesn't go over the limits. 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...