Giter Site home page Giter Site logo

clipbroker_v3's Introduction

Clipbroker-v3

TODOs

  • Deploy

  • Connect database

  • Create text

  • Show created text

  • Delete text

Auth

  • Create user table

  • Auto assign board when users login at '/' and have no session cookie

  • Login user and update session when user visit with /:id

  • Locking board with pin

    • Allow user to set pin to lock board
  • Logout user ( clean up session cookie )

  • Board sharing

    • Embed board id and pin in url for quick sharing
    • QRcode scan on the screen, for quick share with device with camera

Styling/UI

  • Shadcn/ui
  • AutoAnimate

USER STORY

Login flow

Two main ways to enter access the board

1. via Home page

One is via the home page, where user is asked of a alias for using a brand new clipboard or a previous chosen one.

  • a. if user is new (means that user has no cookie of last visited id), we will generated a new one for them, and autofill the input, and user can still choose what they want, or just use the generate one and change later.

  • b. if user has been here before and logged out (cookie will hold a last visited alias) and this alias will be filled in for the user, user can still choose a new one, we just dont generate a random one for them

Once user enter from the home page, there are 2 scenario,

  • a. the board is locked (pin is set by provious user on this board) User will have to enter the correct pin for the pin to enter

  • b. the board is unlocked (either this is a new board that never been used before or have been used and hasn't set a pin) User is able to start using right away, the pin prompt will be skipped

2. via URL

This method enables fast sharing of the same board to another device,like qrcode scanning. Once user obtain the url, can immediately enter the board and start sharing between devices.

example: https://clipbroker/{alias}?pin={pin}

After user enter URL one of 4 scenario will happen

  • URL contains only alias

    • alias not in db

      • create new user
    • alias in db

      • locked, prompt for pin
      • unlocked, login
  • URL contains alias and pin

    • alias not in db

      • create new user, and set pin
    • alias in db

      • correct pin, login

      • wrong pin, prompt for pin

clipbroker_v3's People

Contributors

pakkerman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.