GithubHelp home page GithubHelp logo

Comments (4)

carlssonemil avatar carlssonemil commented on July 17, 2024 1

We would only host the default data, not the user's progress. It sucks that Heroku has turned off their free-tier but there are still free alternatives. But yes, I agree with you completely. We should probably be fine just having simple numerical IDs as well, but nanoid is a good alternative!

from orion.

sol3uk avatar sol3uk commented on July 17, 2024 1

Yeah I assumed the default would be fine by itself, but didn't want to assume that would be all you would want to do!

I had ideas previously for other apps of wanting to be able to store user progress anonymously as a shared "magic link" style system, where a user would have a store ID assigned to them when they began saving progress, then that would be parsed into maybe their unique progress "link" in another URI which would be a super simple document store which could be accessed by any client with the ID and sync up/share progress. It wouldn't inherently link any user data to any person (avoiding legality and complexity for things like user profiles), but would still give people a way to share progress between clients (i.e. web, tablet, mobile, or even between users)

from orion.

sol3uk avatar sol3uk commented on July 17, 2024

To be fair, hosting a DB is taking everything to the next level and incurs additional complexity (storing and deploying secrets, managing DB uptime and query speed), cost and legality (storing user data, keeping it "anonymous", GDPR etc) which I've always tried to avoid with side projects and never actually got around it doing in most cases. And because most recently heroku have stepped down from offering DB hosting, it's clear that the market for free DB hosting is getting less, soon we might not have much choice for free DB hosting at all.

So since this app will only have a fixed number of camouflages in it's lifetime, I would suggest keeping with the fixed file storage you already have.

In terms of ID's, we wouldn't really need to auto-gen them on every add (how often would that really be anyway? maybe 1-2 new weapons per quarter, maximum?), we can generate them in bulk and attach them to the data models manually. In the past I have used an ID system like nanoId to generate really small (5-6 character long), user friendly IDs that aren't a hassle and still have a miniscule chance of duplication.

from orion.

sol3uk avatar sol3uk commented on July 17, 2024

If a worry is contribution and making it easy, I know it sounds stupid but something as simple as google sheets is actually an option. Probably the simplest solution next to a normal document store. I wouldn't use an SQL DB for this really, there's not enough complexity in the entity relationships to justify it.

from orion.

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.