added an example server file, and fixed the main.js , it was not exporting properly
package json v up