When trying to get a outside script file in the views folder, I keep on getting "cannot GET/". How can I fix this?
You need to add this after the app.use bodyparser code:
Although, I suggest using a public/ folder for all of your frontend assets. Then, instead of
static('public'). Then, you can have all of your views, html files, inside public/views.
public ---views ------html ---css ------css files ---js ------js files