This is a base project that spins up a simple Express.js server that can be used within Netlify using serverless-http. This project has two routes:
/
/alternative
The routing works in netlify using the index.html and alternative.jt,l files found in the route. This could be swapped for a better Javascript solution.
To debug locally use:
npm run start-api
This will allow you to debug on port 3000. You can also debug the express server directly, using nodemon.
npm run start