Web Server

docker-compose

see docker.md (need to make)

Start webserver on localhost

If project is in node, usually start like this:

npm run

If not using a framework, the easiest way is the following command:

python -m http.server 8888 

I have it aliased to webserver

Connecting to the outside

There are different ways to do this. I'll list the 2 that I like.

using ngrok

ngrok http 4040

localtunnel

You can use npx if you don't want to actually install localtunnel.

npx localtunnel --port 4040 

or install localtunnel like this:

npm install -g localtunnel 

Now you can use it like this:

lt --port 4040 

Last updated