fai Posted October 5, 2015 Share Posted October 5, 2015 ΦFAI is a decentralized p2p content sharing system with web browser GUI.With FAI, websites or appliacations can be built by Javascript only and run serverless.(pic) The key points for a FAI browser to acheive this magic are:1 Duplication of ΦDB in every node/client instead of storing on server. 2 DNS of website rediection to ΦDB instead of to server.3 Account creation by users instead of regitration on server.4 All operation commands signed by users and saved in ΦDB.5 Powerful API that enables web pages to access the ΦDB instead of interaction with server.6 Web pages authorized full access to Internet. The built-in FAI Shop is a very good example to show how the magic works:1 Seller creates its account. 2 Seller publishes a product by signing a transaction with product data with its account. The product data will be stored in the ΦDB and copied to every user.3 Buyer views the product in ΦShop web page by searching through ΦDB.4 Buyer places an order by signing a transaction with Φcoins sent to seller and purchase information like product link, quantity ,shipment address,etc. This purchase transaction will be stored in the ΦDB and copied to every user.5 The seller receives the purchase transaction by searching through the ΦDB. (Delivery of order is not a problem.)6 As plus, seller and buyer can chat via serverless Φmessenger. And digital products can be delivered by Φmessenger. How to build a serverless website:1 Download and install ΦFAI browser. (www.f-a-i.net)2 Program in html,css and JS with ΦAPIs. The ΦAPI file(fai-api.js) can be found at <datadir>/appdata/browser/js folder.3 Publish to ΦDB. 3.1 Get some faicoins. Currently gathering coins to publish an app only needs one computer mining for 1 day. 3.2 Publish all files of app to ΦDB. There's a batch-publish function in Φpublisher.3.3 Make and publish the package file.It's a list of blockchain links of files in the app, in json format.(Example: <datadir>/appdata/browser/package.json )(The links of files can be found at 'my page')3.4 Register a domain and redirect it to the blockchain link of package file.3.5 As plus, do some promotions on FAI system.(Send as many contents as you want,txt ,pic, vedio,etc)Please feel free to send questions to [email protected] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.