Giter VIP home page Giter VIP logo

Comments (9)

paoloricciuti avatar paoloricciuti commented on May 24, 2024 1

wanna place the idea again to use git(hub) repos but not sure how much hassle that would be

The only issue I have with that is that the user will have to keep a GitHub repo for every REPL and that seems a bit much. We could store every REPL in a single GitHub repo managed by us but I feel like we would hit some limit.

I also thought about storing as plaintext on pastebin or GitHub gist, the filesystem is just a plain old JavaScript object right?

Absolutely, you can store it as POJO. Again the only problem I have with this is that I feel like we would very likely hit some sort of limit "at scale" and I fear that later on we would need to refactor this.

With the right abstraction maybe we could start with something that simple and level up before the end of the hackathon if we have time

from sveltelab.

paoloricciuti avatar paoloricciuti commented on May 24, 2024

I would love to store everything in an url but I think it's almost impossible because there are just too many files to do it.

What we could try is store as long as possible and if we go over the 2048 chars of the url we can store.

Where to store I hear you say? I'd say we can use supabase so that if we want to eventually also add login we can use their auth

from sveltelab.

SarcevicAntonio avatar SarcevicAntonio commented on May 24, 2024

wanna place the idea again to use git(hub) repos but not sure how much hassle that would be

I also thought about storing as plaintext on pastebin or GitHub gist, the filesystem is just a plain old JavaScript object right?

from sveltelab.

SarcevicAntonio avatar SarcevicAntonio commented on May 24, 2024

The only issue I have with that is that the user will have to keep a GitHub repo for every REPL and that seems a bit much. We could store every REPL in a single GitHub repo managed by us but I feel like we would hit some limit.

We could also have each user create one repo to store multiple projects as pojos πŸ˜„

from sveltelab.

SarcevicAntonio avatar SarcevicAntonio commented on May 24, 2024

Status on this right now: local storage

But since it's just POJOs we could have multiple "adapters", like GitHub, Pastebin, etc?

from sveltelab.

paoloricciuti avatar paoloricciuti commented on May 24, 2024

Status on this right now: local storage

But since it's just POJOs we could have multiple "adapters", like GitHub, Pastebin, etc?

I mean we could but do we need to have different options? For the hosted version we need only one...if we want we can abstract this away so that if someone want to deploy their own they could easily write an adapter.

from sveltelab.

SarcevicAntonio avatar SarcevicAntonio commented on May 24, 2024

nah we dont need different options, especially not for MHP, it was just an idea πŸ˜„

we will need definitely need sharable link for MHP tho

from sveltelab.

SarcevicAntonio avatar SarcevicAntonio commented on May 24, 2024

So the plan is pocket base with flyio right? Are we also using Pocketbase for auth the?
I'm down with that i guess. flyio has scaling options right? We can split the bill if you want 😁

from sveltelab.

paoloricciuti avatar paoloricciuti commented on May 24, 2024

So the plan is pocket base with flyio right? Are we also using Pocketbase for auth the? I'm down with that i guess. flyio has scaling options right? We can split the bill if you want 😁

Yeah I think this might be an idea, and yes we should be able to use poket base for the auth too...fly.io should handle scaling automatically and we should be able to run on the free tier.

I think it's time that we tackle this task...I'll give it a shot later (or on Monday)

from sveltelab.

Related Issues (20)

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.