Submit templates for repl.it/templates here.

← Back to all posts
Basic Node Server
natethemaker

Basic Node Server

this Basic server user 2 arguments as you can see below


mode 1 is intended for replit and includes showing the replit url based on the id which would break non replit hosting

mode 0 is home mode and does not do env not found

the [port] section is the port you will host the server on i recommend port 1880 for testing and 80 for long term uptime


go into /views to see the html files


to add a page type this code

Voters
natethemaker