Nanogram is designed for the enthusiest who wants complete data sovereignty on their social media platform.

Spin up your own instance on termux for Android.

Demo here.

Install instructions are at the bottom of the readme.

  • bobslaede@feddit.dk
    link
    fedilink
    English
    arrow-up
    4
    ·
    5 hours ago

    It is not structured in a way that is easily understandable, or quick to get an overview over.
    It’s one big mess of code, all piled together.

    • hereforawhile@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      arrow-down
      2
      ·
      edit-2
      4 hours ago

      Why? Because it’s long and complex? It would be the same exact thing just separated. What’s the difference honestly?

      Here is a overview.

      It starts with defining environment variables, app directory, file permissions for the directory.

      Then it assembles/installs or updates the dependencies.

      Then is concatenates the python app. The python app is big because it’s complex with all the game logic of three mini games.

      The python app grabs all it’s dependency packages it needs, creates the database, defines all the functions I wanted such as… What’s a like, what does a comment button do, what does a login button do, what’s a Scrabble game, what’s a chess game, what’s a read receipt… All these functions define when and where to interact with the memory of the database.

      Then the html templates are concatenated. This is shell of what is served to the client so they can interact with the database.

      Next the CSS file is born. This is just a skin to make it all look nice.

      Finally, it finishes with the CLI server manager. It provides the operator admin functions. Turn the server on, off, networking on and off, backups, invites to server, uninstall the whole app and more.