ecstatic

How to render a HTML page form NodeJs API?

╄→гoц情女王★ 提交于 2019-12-31 06:49:31
问题 **After running http-server, I try to get to URL- http://127.0.0.1:8080 - but instead of what I write, I get "Node.js v8.11.4/ ecstatic server running @ 127.0.0.1:8080"` every time I try. But index.html file opens when clicked directly from the button, shows chrome as default browser and any changes made in coding like adding an email, password or changing the background color, it catches it accordingly. How can I solve this problem??** Here is the code for index.html- <!DOCTYPE html> <html>

How to render a HTML page form NodeJs API?

纵饮孤独 提交于 2019-12-31 06:48:04
问题 **After running http-server, I try to get to URL- http://127.0.0.1:8080 - but instead of what I write, I get "Node.js v8.11.4/ ecstatic server running @ 127.0.0.1:8080"` every time I try. But index.html file opens when clicked directly from the button, shows chrome as default browser and any changes made in coding like adding an email, password or changing the background color, it catches it accordingly. How can I solve this problem??** Here is the code for index.html- <!DOCTYPE html> <html>