I am new to express js.I think this is a newbie problem.express js is not serving static files
var express = require('express');
I think you need to use:
public is what you use as a prefix in your url. The second
public is your physical folder in your file system.
Another option would be not to use
/public/* in your urls.
From the docs:
To create a virtual path prefix (where the path does not actually exist in the file system) for files that are served by the express.static function, specify a mount path for the static directory, as shown below:
Now, you can load the files that are in the public directory from the /static path prefix.