Host files and static pages from your Terminal.

Hello Everyone, Yesterday I created a web API to host the non-binary files and CLI client for that API. It can host your HTML, JSON, XML, and many non-binary files. All hosted files are encrypted and compressed.

yogesh…


This content originally appeared on DEV Community and was authored by YOGESHWARAN R

Hello Everyone, Yesterday I created a web API to host the non-binary files and CLI client for that API. It can host your HTML, JSON, XML, and many non-binary files. All hosted files are encrypted and compressed.

GitHub logo yogeshwaran01 / Instant-Host

Host static pages and Files from your Terminal. It can host your HTML, JSON, XML, and many non-binary files. All hosted files are encrypted and compressed.

Installation

$ git clone https://github.com/yogeshwaran01/Instant-Host

$ cd Instant-Host

$ python3 setup.py install

Usage

Usage of Instanthost is very simple

Host new page

Demo


$ instanthost ~/path/to/file

Output is like this

✌️  Hosted Successfully ✨

created_at: 05/16/2021, 16:39:56

hosted_at: http://instant-host.herokuapp.com/render/U4uhdM4

mimetype: application/xml

private_key: U4uhdM4bnovt

public_key: U4uhdM4

tiny_url: https://tinyurl.com/yehcy54n

Editing the existing page

You can change the data in the file without causing any issues to link with the secret private key. Store your private key for editing content.

$ instanthost ~/path/to/new/file --edit --key <your-private-key>

Output is

✌️  Hosted Successfully ✨

hosted_at: http://instant-host.herokuapp.com/render/U4uhdM4

mimetype: application/xml

private_key: U4uhdM4bnovt

public_key: U4uhdM4

updated_at: 05/16/2021, 16:43:34

tiny_url: https://tinyurl.com/yehcy54n

Like this, you can host all non-binary type file from your terminal

you can host your simple static web page, blog post and etc ...


This content originally appeared on DEV Community and was authored by YOGESHWARAN R


Print Share Comment Cite Upload Translate Updates
APA

YOGESHWARAN R | Sciencx (2021-05-17T02:32:12+00:00) Host files and static pages from your Terminal.. Retrieved from https://www.scien.cx/2021/05/17/host-files-and-static-pages-from-your-terminal/

MLA
" » Host files and static pages from your Terminal.." YOGESHWARAN R | Sciencx - Monday May 17, 2021, https://www.scien.cx/2021/05/17/host-files-and-static-pages-from-your-terminal/
HARVARD
YOGESHWARAN R | Sciencx Monday May 17, 2021 » Host files and static pages from your Terminal.., viewed ,<https://www.scien.cx/2021/05/17/host-files-and-static-pages-from-your-terminal/>
VANCOUVER
YOGESHWARAN R | Sciencx - » Host files and static pages from your Terminal.. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/05/17/host-files-and-static-pages-from-your-terminal/
CHICAGO
" » Host files and static pages from your Terminal.." YOGESHWARAN R | Sciencx - Accessed . https://www.scien.cx/2021/05/17/host-files-and-static-pages-from-your-terminal/
IEEE
" » Host files and static pages from your Terminal.." YOGESHWARAN R | Sciencx [Online]. Available: https://www.scien.cx/2021/05/17/host-files-and-static-pages-from-your-terminal/. [Accessed: ]
rf:citation
» Host files and static pages from your Terminal. | YOGESHWARAN R | Sciencx | https://www.scien.cx/2021/05/17/host-files-and-static-pages-from-your-terminal/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.