Skip to content

emmanuelmacharia/drive-tutorial

Repository files navigation

Drive tutorial

TODO

  • Set up database and data model
  • Move folder Open state to url (hoist navigation)
  • Add auth
  • Add file uploading
  • Add analytics using posthog

notes - 36min

  • we set up the db for development and connected to it
  • add the schema of the tables
  • Manually insert examples
  • render them in the ui

notes - 1.07.11min

  • inserted mock data into db

notes 1.25.11min

  • Change folder to link components, remove client state
  • clean up database and data fetching patterns

notes 2:20:46 min

  • Add ownership to files
  • Upload fiiles to the correct folder
  • Delete files button
  • Allow files thay arent images to be uploaded
  • Display file type and file sizes correctly in the view
  • Retrieve the file type from uploadthing and save it in db
  • real homepage

notes 2:40.44

  • Real homepage + onboarding

followup

[ ] folder deletion - make sure to recursively delete all files and folders [x] create a server action that takes a name, parentid, and creates a folder with that name and parentid; (don't forget to set the owner id)

Toasts

[x] Notifications for user actions

Access Control

[x] When a user is signed in, they cannot view other users files [ ] Try doing file sharing

Make a file view page

[ ] make a page within which to view the file from

Loading state for file

[ ] Grey out the file while it's being deleted

folder and file management

[ ] Make the folder name editable [ ] Make the file name editable

About

A google drive clone app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors