Created AnonPasteBin Using appwrite’s Anonymous Login functionality

Overview of My Submission

I came to know about appwrite on March 11th so had literally 1 day to submit the project…… but it turns out it’s a dead simple setup for any developer and I’ve to say it’s an amazing dev experience.

So I made t…


This content originally appeared on DEV Community and was authored by Sharad Raj (He/Him)

Overview of My Submission

I came to know about appwrite on March 11th so had literally 1 day to submit the project...... but it turns out it's a dead simple setup for any developer and I've to say it's an amazing dev experience.

So I made this Anonymous Pastebin Project AKA "AnonPaste" to test out the anonymous login functionality provided by appwrite and how it works behind the scenes.

The project is dead simple, it does following:

  • As soon as you are on the create paste page you are automatically logged in using anonymous login.
  • When you create a paste after providing title and text it saves and redirects the user to the View Paste Page.
  • View Paste Page extracts the ID of the document AKA paste from the route and uses it to load the document AKA paste and show it to the user.

Submission Category:

  • Web2 Wizards

Link to Code

DEV appwrite Hackathon project

Anonymous PasteBin AKA AnonPaste

So I made this "AnonPaste" Anonymous PasteBin Project to test out the anonymous login functionality provided by appwrite and how it works behind the scenes.

The project is dead simple, it does following:

  • As soon as you are on the create paste page you are automatically logged in using anonymous login.
  • When you create a paste after providing title and text it saves and redirects the user to the View Paste Page.
  • View Paste Page extracts the ID of the document AKA paste from the route and uses it to load the document AKA paste and show it to the user.

Setup

  • Clone repo.
  • Install appwrite. Steps are at: https://appwrite.io/
  • Cd to repo folder and npm i
  • Open appwrite dashboard.
  • Create a collection named pastess with following string fields
    • txt size 10000.
    • title & code with size leave it as

Additional Resources / Info

Video Demo:

Screenshots:

Home

Create Paste Page

View Paste Page


This content originally appeared on DEV Community and was authored by Sharad Raj (He/Him)


Print Share Comment Cite Upload Translate Updates
APA

Sharad Raj (He/Him) | Sciencx (2022-05-12T15:00:25+00:00) Created AnonPasteBin Using appwrite’s Anonymous Login functionality. Retrieved from https://www.scien.cx/2022/05/12/created-anonpastebin-using-appwrites-anonymous-login-functionality/

MLA
" » Created AnonPasteBin Using appwrite’s Anonymous Login functionality." Sharad Raj (He/Him) | Sciencx - Thursday May 12, 2022, https://www.scien.cx/2022/05/12/created-anonpastebin-using-appwrites-anonymous-login-functionality/
HARVARD
Sharad Raj (He/Him) | Sciencx Thursday May 12, 2022 » Created AnonPasteBin Using appwrite’s Anonymous Login functionality., viewed ,<https://www.scien.cx/2022/05/12/created-anonpastebin-using-appwrites-anonymous-login-functionality/>
VANCOUVER
Sharad Raj (He/Him) | Sciencx - » Created AnonPasteBin Using appwrite’s Anonymous Login functionality. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/05/12/created-anonpastebin-using-appwrites-anonymous-login-functionality/
CHICAGO
" » Created AnonPasteBin Using appwrite’s Anonymous Login functionality." Sharad Raj (He/Him) | Sciencx - Accessed . https://www.scien.cx/2022/05/12/created-anonpastebin-using-appwrites-anonymous-login-functionality/
IEEE
" » Created AnonPasteBin Using appwrite’s Anonymous Login functionality." Sharad Raj (He/Him) | Sciencx [Online]. Available: https://www.scien.cx/2022/05/12/created-anonpastebin-using-appwrites-anonymous-login-functionality/. [Accessed: ]
rf:citation
» Created AnonPasteBin Using appwrite’s Anonymous Login functionality | Sharad Raj (He/Him) | Sciencx | https://www.scien.cx/2022/05/12/created-anonpastebin-using-appwrites-anonymous-login-functionality/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.