FedoseevSM / neutralinojshypercorereact

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

neutralinojs hypercore react

Created By: Lightnet

Status:

  • Prototyping builds.

Notes:

  • hypercore 10 upcoming and not used.
    • dev working the new build
    • 02.10.2022
  • hypercore 9 ( Current )
    • replicate not working just test example.

Information:

Work in progress...

HyperDrive is virtual drive folder that use network peer to peer sharing data. Current default to local virtual drive. All data is store in current project dir folder as "my-hyperdrive" in drive format data. User can script them.

By using the React.js for UI design and fetch/request call url for data upload and download. Without need to refresh the page or reload them since those components is modular format.

It can be portable application for web hosting user interface and file sharing. It only needs nodejs install to get those packages added and running.

One is React.js is bundle single file for client browser. It save bandwidth in some degree.

As for the stream data that have not try yet.

Refs:

Packges:

  • @neutralinojs/neu
  • express
  • react
  • @babel/core
  • hyperdrive
  • hyperspace
  • hyperbee
  • webpack
  • browser-sync

Features:

  • Auth check access. (Not build / Testing...)

  • hypercore peer to peer network ( not build )

  • Hyperdrive (file management)

    • local (default without the key for general access, configs and save drive keys)

      • image check view (added / png)
      • create file (added)
      • rename file (not added)
      • upload (added)
      • download (added)
      • delete file (added)
      • create folder (added)
      • delete folder (added)
        • delete folder sub (not added)
      • copy file (not added)
      • copy files (not added)
    • create drive key (not added)

    • list drive key (not added)

  • Hyperbee (database) (added)

    • key, value (added / simple get local db)
    • sub key (not added)
  • express

    • api for drive access, upload, download and other functions calls.

Layout:

Home | HyperDrive | HyperBee | Text Editor |

HypedDrive Urls:(work in progress)

http://localhost/api/hyperdrive/filename.txt <-local drive
http://localhost/api/hyperdrive/testfolder/filename.txt <-local drive with folder
http://localhost/api/hyperdrive/000000.../filename.txt <- key drive with file

It need to check if there key or file that be loaded. One for access to local drive and other is key drive.

It will go with some simple check on drive id or file pathing.

Set Up:

Install nodejs

neutralinojs app

npm install
npm i -g @neutralinojs/neu

neu update

npm run dev

express web app

npm install

npm run devweb

vite web app

npm install

npm run devv

To update the react component real time debug.

Dev:

"nativeAllowList": [
    "app.*",
    "os.*",
    "window.*",
    "storage.*",
    "filesystem.*",
    "extensions.*",
    "clipboard.*",
    "computer.*",
    "debug.*",// for dev error on promise remove when added.
    "events.*"
  ],

Bugs and Notes:

  • download ask prompt does not appear.
  • hypercore

Links:

About


Languages

Language:JavaScript 94.8%Language:CSS 4.1%Language:HTML 1.1%