[MOVED] CollabNotes
- 3 Devlogs
- 14 Total hours
MOVED TO PIXL EVENT | A collaboration notes app where multiple people can edit the same text at the same time, synced via WebSocket
MOVED TO PIXL EVENT | A collaboration notes app where multiple people can edit the same text at the same time, synced via WebSocket
GET /api/email/request the token is now URL decoded before it’s usedPOST /api/login to return a 204 instead of redirectionPOST /api/verify-email endpoint to verify the mail (either at register or update mail)POST /api/account/update-email endpoint to let users change their mailGET /api/notes endpoint to let the user see the notes he has access toPOST /api/notes endpoint to let the user create a note under his userGET /api/notes/{noteId} endpoint to get the data of a specific note (if the user has access to it)DELETE /api/notes/{noteId} endpoint to let a user delete his own notes (not the ones made by other even if he has access to them)POST /api/notes/{noteId}/join endpoint to let a user join a note via its sharing codePOST /api/notes/{noteId}/share endpoint to create a sharing code for the note (each code is one-time use only)DELETE /api/notes/{noteId}/share endpoint to delete a sharing code for the note (note owner only)POST /api/notes/{noteId}/leave endpoint to let a user leave a note on its ownPOST /api/notes/{noteId}/kick endpoint to let the note owner kick someone from the noteroute("/...") { ... } i was using get("/") { ... } instead of get { ... } and this caused the base route to not exist (like /api/route) but only the one with trailing slash (like /api/route/)once again no frontend yet so here’s some of the code
routes folderPublicDatabaseUser data class that doesn’t contain sensitive info such as passwordCrypto object to hash & salt stringsEmail class not seeing the template fileNone of those changes have been tested yet
once again no frontend yet so just code screenshots
EnvVariable enum, Random object, build process w/ tailwind & envs setup, middlewares, AppDatabase object)Email class used to validate emails, check for duplicates and send the verification codethere’s no frontend yet so i’ll show some of the API routes skeletons