DEV Community

Cover image for Created AnonPasteBin Using appwrite's Anonymous Login functionality
Sharad Raj (He/Him)
Sharad Raj (He/Him)

Posted on

 

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 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

GitHub logo sharadcodes / appwrite-pastebin-devto-hackathon

DEV.to appwrite Hackathon Submission | AnonPaste webapp

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

Top comments (0)

The JavaScript Brief

Dive into the world of JavaScript with these three trendworthy articles that you cannot miss this week!

7 JavaScript Web APIs to build Futuristic Websites you didn't know

Explore the world of overlooked Web APIs that can bring your next project to new heights πŸŒ•πŸš€. Some of the best Web APIs include Screen Capture API, Clipboard API and Web Workers API. Get informed and cast a glance at some of the future stars of web development.

10 GitHub Repositories You Should Know as a JavaScript Developer

Elevate your skills as a JavaScript developer with these 10 top GitHub repositories. Ranging from NodeJS best practices to diverse libraries and collections, these repositories are a must-know for any dedicated JS dev.

20 Killer JavaScript One-Liners That’ll Save You Hours of Coding

Multiply your coding agility with 20 essential JavaScript one-liners πŸš€ that save both time and energy when developing. Discover amazing one-liners for finding max value in an array, capitalizing the first letter of a phrase, generate secure ID, among many others.

Get inspired, and level up your JavaScript game with this week's top reads! πŸŽ’πŸ§—