replit Node.JS 24/7 Project Hoster
Applying
Open your main repl file (example: index.js, app.js, main.js etc...) and at the top and the end of the code, paste this simple code inside:
Top of the code:
End of the code:
After that, create a new file named server.js
and copy paste this code inside the file:
Finally, connect the web address given at top right corner to a hosting website. I use freshping the most.
This code is only compatible for node.js. For python, click me!
PreviousHow to create your command-line program (CLI) with NodeJS and Commander.js | by Duc N. | JavaScriptNextcheatsheets
Last updated