An Interest In:
Web News this Week
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
- March 26, 2024
May 17, 2021 02:32 am GMT
Original Link: https://dev.to/yogeshwaran01/host-files-and-static-pages-from-your-terminal-ohk
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.
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
$ instanthost ~/path/to/file
Output is like this
Hosted Successfully created_at: 05/16/2021, 16:39:56hosted_at: http://instant-host.herokuapp.com/render/U4uhdM4mimetype: application/xmlprivate_key: U4uhdM4bnovtpublic_key: U4uhdM4tiny_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/U4uhdM4mimetype: application/xmlprivate_key: U4uhdM4bnovtpublic_key: U4uhdM4updated_at: 05/16/2021, 16:43:34tiny_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 ...
Original Link: https://dev.to/yogeshwaran01/host-files-and-static-pages-from-your-terminal-ohk
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To