A decentralized file storage solution built using Blockstack and Quasar.
Guest post by: @muneebm
Over the past few years, the world has witnessed many instances of big corporations messing up their user's private data. Most of us are now wary of giving companies like Google and Facebook access to our data. This is why we decided to create a simple to set up cloud storage solution where you will have full control over where your data gets stored AND who accesses your data. That's how XOR Drive was born.
Here is how XOR Drive is different from a centralized file storage solution:
That's where Blockstack comes into the picture. It's a platform for building blockchain based decentralized applications. Blockstack provides you with out of the box tools for implementing blockchain based authentication and incorporating decentralized storage in your app.
Here is how easy it is to integrate blockchain based authentication to your Quasar app using Blockstack's JavaScript library:
npm install blockstack --save
or
yarn add blockstack
import * as blockstack from 'blockstack'
signIn () {
if (blockstack.isUserSignedIn()) { // Already signed in?
const userData = blockstack.loadUserData()
showProfile(userData.profile) // Use the profile data
} else if (blockstack.isSignInPending()) { // Is pending?
blockstack.handlePendingSignIn()
.then(userData => {
showProfile(userData.profile)
})
} else { // Redirect the user to Blockstack sign in / sign up
blockstack.redirectToSignIn()
}
}
You can find more about the other APIs available in blockstack.js here.
If you are interested in learning more about Blockstack, check out the following links:
DOCS: https://docs.blockstack.org/
FAQ: https://blockstack.org/faq/
App Mining: https://app.co/mining
We decided to use Quasar mainly because of how easy it is to build an MVP using Quasar. We had our initial version of UI ready within a few days of starting the development. We couldn't be happier that we made that decision.
Quasar is the most advanced and easily customizable Vue.js framework currently available. Quasar makes it drop-dead simple to build your app for multiple platforms. You can deploy your app as a website, PWA, Electron app, or mobile apps using the same codebase. Most of the UI elements you see on XOR Drive are Quasar components.
If you need more information about Quasar, here are a few links that you can check out:
COMPONENTS: https://github.com/quasarframework/quasar
CLI: https://github.com/quasarframework/quasar-cli
THE DOCS: https://quasar-framework.org/
DISCORD: http://chat.quasar-framework.org/
FORUM: https://forum.quasar-framework.org/
TWITTER: https://twitter.com/quasarframework
STEEM: http://steemit.com/@quasarframework
Thanks for reading.
Follow xordrive on twitter: https://twitter.com/xordrive
Product Hunt: https://www.producthunt.com/posts/xor-drive