1
0
Fork 0
Personal terminal pastebin service. https://termbin.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Gökmen Görgen 57fe4d7eb3 update README.md 5 months ago
.gitignore initial project structure. 5 months ago
README.md update README.md 5 months ago
fiche.service fix service. 5 months ago
go.mod simple tcp server for pastebin-like service. 5 months ago
go.sum simple tcp server for pastebin-like service. 5 months ago
nginx.conf add config. 5 months ago
server.go simple tcp server for pastebin-like service. 5 months ago

README.md

YANK

Personal terminal pastebin service. Termbin clone.

alias yank="nc localhost 3000"

echo "merhaba, ömürcan!" | yank
http://localhost:3000/abcd

cat file1.txt | yank
http://localhost:3000/defg

To run the server just type this command:

go run server.go

REQUIREMENTS

  • Golang
  • and Golang.

TODO

  • create a config.toml to get host and port information.
  • use basic auth for tcp connection.
  • use logger instead of println.
  • create a folder structure for keeping texts and serving them using nginx (or caddy?).