You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-34Lines changed: 0 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,39 +1,25 @@
1
1
# teenyHTTP
2
-
3
2
### A basic HTTP server written in precisely 100 lines of Go.
4
-
5
3
The install script has more lines of Bash than the actual `main.go` source file. Even this `README.md` file was written in more lines than teenyHTTP.
6
-
7
4
---
8
-
9
5
## Features:
10
-
11
6
- Manual overriding of paths
12
7
- No dependencies (install helper script requires Bash (unless you compile it yourself))
13
8
- Easy port selection
14
-
15
9
---
16
-
17
10
## Install & Setup:
18
-
19
11
### Install
20
-
21
12
0) Ensure you have `Bash` installed
22
13
> [!NOTE]
23
14
> not needed if not using install helper script
24
-
25
15
```shell
26
16
command -v bash
27
17
```
28
-
29
-
30
18
1)`cd` into your working directory
31
19
(replace `/your/path/to/your/files` with your path)
32
20
```shell
33
21
cd /your/path/to/your/files
34
22
```
35
-
36
-
37
23
2) Run the setup script
38
24
```shell
39
25
curl -fsSL https://raw.githubusercontent.com/supraboy981322/teenyHTTP/main/install-1.sh | sh
@@ -42,20 +28,15 @@ OR
42
28
```shell
43
29
wget -fsSL https://raw.githubusercontent.com/supraboy981322/teenyHTTP/main/install-1.sh | sh
44
30
```
45
-
46
-
47
31
3) Follow the on-screen instructions
48
32
49
-
50
33
### Setup
51
-
52
34
1) Create a systemd service file
53
35
(you may need `su` permissions, replace `nvim` with your prefered text editor, such as `nano`[`nano` is easier than `nvim`])
54
36
```shell
55
37
nvim /etc/systemd/system/teenyHTTP.service
56
38
```
57
39
58
-
59
40
2) Enter the following
60
41
(replace `/your/working/directory/` with the directory of your configuration JSON files and files to serve, and `/your/executable/path` with the directory to the teenyHTTP executable)
0 commit comments