Fauna: Host an Application on IPFS with IPFS Dedicated Gateways
Learn how to host a Fauna application on IPFS with IPFS Dedicated Gateways
Last updated
Learn how to host a Fauna application on IPFS with IPFS Dedicated Gateways
Last updated
FaunaDB is a distributed, multi-model, serverless, and cloud-native database that allows developers to easily store, manage, and query their data. Fauna applications can be built using a variety of programming languages and frameworks, including JavaScript, Python, and Java. They can be used for a wide range of use cases, including e-commerce, social media, gaming, and IoT.
Read below to learn how to host a Fauna application on IPFS with IPFS Dedicated Gateways.
ipfs pin remote service add filebase https://api.filebase.io/v1/ipfs access-token
Replace access-token with your Filebase IPFS Pinning Service token. The access-token can be generated by navigating to the Filebase Access Keys page, then viewing the IPFS PInning Service API Endpoint. Click the drop down menu for 'Choose Bucket to Generate Token', then choose the IPFS Filebase Bucket you want to use.
Then copy the generated Secret Access Token:
git clone https://github.com/fauna/todomvc-fauna-spa
cd todomvc-fauna-spa/
npm install
npm start
ipfs add -r build
ipfs pin add -r /ipfs/CID
Replace CID with the CID of the build folder that was returned at the end of the last command:
You will receive confirmation that your files have been pinned:
The folder will be present in your Filebase bucket from the dashboard:
Filebase IPFS Dedicated Gateways are a feature only available to paid users. They are not available for users on the free tier.
Gateway names are subject to the same naming restrictions as bucket names. All gateway names must be lowercase, between 3-63 characters, and must be unique.