Let the web page run on web server?

52 views Asked by At

I was using Bryntum Scheduler, but can't import it because of CORS policy. After my research, I got to know that creating a web server can solve that.

So I have learned some node.js and create a web server.

Then it's the question. I created a web server, but how can I run my page on it?

1

There are 1 answers

0
busyfingers On

You need to serve static assets in order to serve a web page.

This is perfectly doable using pure NodeJS but if you just want to get going, take a look at the Express framework and “Express generator” that lets you scaffold a web server very quickly.

https://expressjs.com https://expressjs.com/en/starter/generator.html