> For the complete documentation index, see [llms.txt](https://chadboyce.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chadboyce.gitbook.io/notes/web_server.md).

# Web Server

## `docker-compose`

see [docker.md](/notes/docker.md) *(need to make)*

## Start webserver on localhost

If project is in node, usually start like this:

```shell
npm run
```

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

```shell
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`

```shell
ngrok http 4040
```

### localtunnel

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

```shell
npx localtunnel --port 4040 
```

or install localtunnel like this:

```shell
npm install -g localtunnel 
```

Now you can use it like this:

```shell
lt --port 4040 
```
