DocuPool is a platform where you can share your documents and notes, obtaining tokens that you can then use to unlock other people's content.
This project was created using Supabase as part of the Bring the Func Hackathon of April 2022.
DocuPool is hosted on Vercel at https://docupool.vercel.app/. Try searching for "fables" to see some sample documents!
Built with ❤️ by
Edge Functions are the main focus of this project! They are used wherever we need a secure environment to run our code on.
For example, our admin panel uses Edge Functions to approve or reject users' submissions. The business logic for handling the number of coins is directly coded into the function.
Non-admin users interact with functions whenever they unlock a new document!
This website is built using Supabase, Next.js and Chakra UI, and it is hosted on Vercel.
DocuPool uses multiple Supabase features, now including Edge Functions
- Supabase Auth: used to let users sign in or create accounts
- Supabase Database: used as database to keep data about documents, coins, unlocks, etc.
- Supabase Storage: used to store the actual documents that can be unlocked
- Supabase Edge Functions: used to perform secure operations on the edge, such as unlocking a new document
This is the current database schema:
(made with Supabase Schema)