emilioschepis / docupool

Document sharing platform built with Supabase and Next.js for the Bring the Func Hackathon of 2022.

Home Page:https://docupool.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DocuPool

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

  • Emilio — GitHub · Twitter
  • Federico — no GitHub or Twitter yet

Edge Functions

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!

Technologies

This website is built using Supabase, Next.js and Chakra UI, and it is hosted on Vercel.

Supabase

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:

DocuPool Database Schema (made with Supabase Schema)

About

Document sharing platform built with Supabase and Next.js for the Bring the Func Hackathon of 2022.

https://docupool.vercel.app


Languages

Language:TypeScript 99.9%Language:JavaScript 0.1%