Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 8 additions & 37 deletions docs/the-basics.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,11 @@
---
id: the-basics
title: The Basics
sidebar_label: The Basics
slug: /
---
# Clone the repository
git clone https://github.com/Anuj579/sweet-favor.git

## Put a locally running HTTP, HTTPS or TLS app on the internet
# Navigate into the folder
cd sweet-favor

localhost.run is a client-less tool to instantly make a locally running application available on an internet accessible URL.
# Install dependencies
npm install

All major operating systems already have SSH installed, and localhost.run uses SSH as a client, so no download is necessary to use the service and no account setup is needed for free domains.

To connect an internet domain to an application running locally on port 8080 open a command terminal and run:

```bash
ssh -R 80:localhost:8080 localhost.run
```

import { useState } from 'react'

export const PortChooser = () => {
const [port, setPort] = useState(3000);
return (
<>
running on&nbsp;
<label for="port">local port</label>
&nbsp;
<input style={{width: "5em"}} type="number" id="port" name="port" min="1" max="65535" value={port} onChange={(event) => setPort(event.target.value)} />
?
use this command:
<pre><code parentName="pre" {...{
"className": "bash"
}}>{`ssh -R 80:localhost:${port} localhost.run
`}</code></pre>
</>
)
};

<PortChooser />
# Start the development server
npm run dev