GithubHelp home page GithubHelp logo

share's Introduction

Share (Name Pending)

In development.

Project Board


Table of Contents

Tech Stack

Client

The client is built with React using Vite as the build tool. It uses Bun as a package manager and task runner. It uses Tailwind CSS for styling, Tanstack Router for routing.

It uses ESLint for linting and Prettier for formatting.

Server

The server is built in TypeScript using Bun.

Setup

Ensure Bun is installed.

Client

cd client
bun install

Server

cd server
bun install

Usage

Development

For both client and server, run the following command in their respective directories:

bun dev

Authors

This project was created by Kirill Tregubov and Jeff Kwan.

License

All code in this repository is distributed under the GNU GPLv3 license. See LICENSE.txt for more information.

(back to top)

share's People

Contributors

kirilltregubov avatar jeffkw213 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jeffkw213

share's Issues

exchange client information when they are on same ip

  • backend
    • create client object and schema (using zod)
    • create map with networks
    • check ip on connection, assign as key to map if doesn't exist, add the client (information) to that array if they do
      • generate id with crypto.randomUUID()
    • add the client to the "topic" (websocket pub/sub) so they can receive those messages
    • when a client joins, broadcast its client information (stringified json object) to that topic
    • when a new client joins, broadcast all existing clients' information to them

frontend displays connected peers

  • receive stringified json object of connected peers via websockets
  • parse and store in peers map (in react query's cache)
  • make a component that displays one peer
  • iterate over all peers to display all of them (using component)

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.