force git pull overwrite
# if working with newer repos where 'master' is now 'main'
git fetch --all
git reset --hard origin/main
force git pull overwrite
# if working with newer repos where 'master' is now 'main'
git fetch --all
git reset --hard origin/main
app.use public
app.use(express.static('public'))
app.use(express.static('files'))
use static with expres
app.use(express.static('directoryName'))
#store the files in the directory as if you were making a website without express
path in html
/ = Root directory
. = This location
.. = Up a directory
./ = Current directory
../ = Parent of current directory
../../ = Two directories backwards
How to add js file to a site through url
var jsFile = document.createElement("script");
jsFile.src = "homePage.js"; // it can be path also "{themes('/scripts/homePage.js')}"
document.body.appendChild(jsFile); //append it as src to body
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us