How to Deploy a Celo Composer Application on Spheron Protocol for Decentralized Cloud Storage

How to Deploy a Celo Composer Application on Spheron Protocol for Decentralized Cloud Storage https://celo.academy/uploads/default/optimized/2X/9/9013fbafd16086bf58e976f70958c9fd263097b3_2_1024x576.png
none 0.0 0

Introduction

In this tutorial, we will be learning how to deploy a dapp built using celo composer on a decentalised cloud service called spheron protocol.

Prerequisites​

To start building, you’ll need a basic understanding of web development, Node (v12), yarn, and Git.

Celo Composer

The easiest way to get started with Celo Composer is using @celo/celo-composer

. This CLI tool enables you to quickly start building dApps on Celo for multiple frameworks including React, React Native (w/o Expo), Flutter, and Angular. You can create the dApp using the default Composer templates provided by Celo. In our case, we will work with react, specifically NextJS. The stack included in celo composer:

Spheron Protocol

Spheron Protocol is an all-in-one decentralized platform for automating modern dapps.

They provide a frictionless developer experience to take care of the hard things: deploying instantly, scaling automatically, and serving personalized content on decentralized networks.

Let’s start building:


Getting Started

  1. Bootstrap the application using this Celo Composer command.

npx @Celo_Academy/celo-composer create

  1. Select React framework(NextJS)

  1. Select react-celo as the web3 library

  1. Select none for the smart contract framework since we’ll be working with the 0x Protocol API.

  1. Select No for subgraph

  1. Give a name to your project and you are done.

Launch the app in your code editor then install the dependencies required in the project. In the root directory, run


yarn

//or

npm install


Upload Project to Github

  • Navigate to your repositories

image_1-6fc8bb2ea7d2cd38a7f67dda29e9438f

  • Give the repository a name.

image_4-e05c4589a67e20af980e737f4a51cf1e

  • Click on create repository or press enter.

image_3-ad35ea4b2ed706d09d6bc84325f9553e

  • Follow the guide to upload your project on github

image_2-fef87edefd535e56e0b776e82711ae65


Deploying the App on Spheron

image17-a82b07af4ff6d77fb15c3983dfeaba60

  • Click "Sign Up” button

image16-22ff32ce7fb161470ea7220446b2ffe8

  • Click "Continue with GitHub”

image13-8dd240b7611865b1fedb63945931ede3

  • Select an organisation of your choice.

image12-e38e9dba5b1474f72ea993eeb0e6c4d5

  • Click "New Project”

download

  • Click "Github”

image1-8bb67423860d819c69e511eb57b76ce2

  • Pick the github account and Click the “Search repository” field and search the repository that you want to deploy.

image11-a8bcaab7aae4da43293b4656d539f14c

  • Select “Filecoin” or "IPFS”

image14-9ad299bdbfb150cdb1f64a632ad78f9c

  • Input the directory with react application which is "packages/react-app”

image2-0bf19ab1fe265e85cd71114ef3942056

  • Pick the Javascript framework i.e NextJS.

image7-7e784c0aff2690e8b4cc4bbc1076d73e

  • Click "Deploy”

image3-18c9c63dcbe27020e197f5ff4c6679bb

  • Check the logs for the installation process.

image9-c268c974acdacf0abdc9448ebff9773f


Testing the App

image10-ecdbd9bb4ebb2495102cedfe77ad172a

  • Click "Connect”

download (1)

  • Click "MetaMask” or any other wallet of your choice.

image4-ae59dafd020deaf0f957edeeff31a240


Conclusion

With the assistance of Spheron protocol, you have the capability to continue developing your application, and once you push your changes to GitHub, they are automatically deployed through your deployed link. This is made possible by the built-in CI/CD workflow.

Why choose Spheron Protocol

Here are reasons why you should use spheron to deploy your decentralised app:

  • Secure data storage: Spheron Protocol utilizes blockchain technology to provide secure and tamper-proof data storage. The data is distributed across the network and is protected by strong encryption and access controls, ensuring that it is only accessible to authorized parties.

  • Data privacy and ownership: With Spheron Protocol, users have full control and ownership of their data. They can choose who has access to their data and can revoke access at any time. This ensures that user privacy is protected and gives users the confidence to share their data on the platform.

  • Scalability: Spheron Protocol is designed to be highly scalable and can handle large volumes of data and transactions. This makes it suitable for a wide range of applications that require high performance and throughput.

  • Interoperability: Spheron Protocol is designed to be interoperable with other blockchain networks and protocols, making it easier for developers to integrate their apps with the platform.

  • Incentivization: Spheron Protocol provides incentives for users to participate in the network by offering rewards for contributing computing resources and validating transactions. This incentivizes users to help secure the network and ensure its reliability.

  • Lower costs: Spheron Protocol can help reduce the costs of data storage and management by eliminating the need for centralized servers and intermediaries. This can result in significant cost savings for businesses and organizations.

  • Community support: Spheron Protocol has an active and growing community of developers, users, and enthusiasts who are committed to building a decentralized data ecosystem. This community provides support, feedback, and resources to help developers build and deploy their decentralized apps on the platform.

  • Use cases: Spheron Protocol has a wide range of potential use cases in various industries such as healthcare, finance, supply chain management, and more. By deploying your decentralized app on Spheron Protocol, you can tap into this growing market and leverage the benefits of blockchain technology.

About the Author

I am Dennis Kimathi, a UI/UX designer, full-stack developer, and blockchain enthusiast. I have a strong passion for creating user-centered designs that are not only aesthetically pleasing but also efficient and intuitive to use. Over the years, I have honed my skills in developing web applications that are robust, scalable, and secure, thanks to my experience in full-stack development.

As a blockchain enthusiast, I am constantly exploring and learning about the potential of this technology and how it can be applied in various industries. I believe that blockchain has the potential to revolutionize the way we do things, from finance to healthcare and beyond. Its ability to provide decentralized, secure, and transparent systems has the potential to bring about significant changes that will benefit society.

Fun fact about me, i am into archeoastronomy.

Resources

2 Likes

well written and detailed.

1 Like

This is educative

1 Like