Minimal static server with express.
git clone git@github.com:Noviel/minimal-static-server.git my-app
cd my-app
npm install
- Place static content inside
static
folder - Run
npm start
- Open
localhost:9002
Provide NODE_IP
and PORT
environmental variables to modify ip
and port
of the server.
On Linux: PORT=4200 NODE_IP=0.0.0.0 npm start
On Windows: SET PORT=4200 && SET NODE_IP=0.0.0.0 && npm start