TON Web - create and host sites in the Telegram Open Network

admin

Administrator
Команда форума
Сообщения
525
Реакции
144
TON Web for hosting files in TON Blockchain and proxy, which makes possible to request websites in blockchain through browser. A smart-contract, which helps to store files directly in its persistent storage with support of get-methods. Smart-contract written in programming, language Fift / FunC.


How to host a website in TON Web?

You need a *nix system.

1. Compile lite-client and fift, as described here.
Make sure, that FIFTPATH is configured and fift is available globally.

2. Download my repository.

3. Run bash new.sh /path/to/your/website/ <name-base-of-files>

For example, bash new.sh ~/tonweb.site tonweb
You should witness how files are being put in "bag-of-cells" file.
At the end, it will generate an external message and show you a price of website holding.

4. Transfer needed Grams to the address.

5. Send external message sendfile <filebase>-query.boc` in lite-client

6. Then you can access to your website at https://tonweb.site/ <address>


Project website: https://tonweb.site
Example site: https://tonweb.site/-1:2bcc9840e7b9ec6b77fe3543b4eefbf3ba6c69fd98f362b3d3b2f4b752adb5e8/index.html
Github: https://github.com/dkaraush/ton-web
 
Сверху