Giter Club home page Giter Club logo

Comments (5)

danielkrajnik avatar danielkrajnik commented on June 3, 2024

I've tried changing version in package.json to 20.2.0 and running yarn install, but it kept failing.
Trying to build node version 12.13.1 from source now...
...and failing:

../deps/v8/src/base/debug/stack_trace_posix.cc:34:10: fatal error: 'execinfo.h' file not found

yep, confirmed that you can't compile nodejs on android.

Tried grabbing a nodejs 12 .deb package from debian, but it won't be installed because it has unresolved dependencies:
https://debian.pkgs.org/12/debian-main-arm64/nodejs_18.13.0+dfsg1-1_arm64.deb.html

by the way version 12 isn't supported anymore?

I thought about running it in a docker container, but it requires qemu and seems too much just to run organice.

Other options: proot or packaging it as a native client with something like react native or flutter. Keep trying...

How about webpack? Could it be packaged as a bundle of static content and served from temux from a regular http server? This sounds like the simplest and most secure solution.

from organice.

branch14 avatar branch14 commented on June 3, 2024

Hi @danielkrajnik, first of all let me express my admiration of your bravery. :)

Secondly, May I ask what your use case is for running organice within Termux?

Organcie is a PWA with offline capabilities which syncs to a storage backend of your choosing when online. If you just want to use organice on your phone pointing a browser to any instance e.g. https://organice.200ok.ch should be enough.

If you have a use case for hosting a PWA within Termux on an Android device consider me intrigued. I'd love to hear about it.

from organice.

munen avatar munen commented on June 3, 2024

Hi @branch14

thanks for chiming in. Op wants to access local files. There’s prior art and documentation on how to run organice in Termux with a local WebDAV server to accomplish that: https://github.com/200ok-ch/organice/tree/master/contrib

from organice.

branch14 avatar branch14 commented on June 3, 2024

IC. Nevermind my patronizing scrutiny then. :)

from organice.

danielkrajnik avatar danielkrajnik commented on June 3, 2024

Thanks both:
@munen I haven't seen this guide. The version it mentions is outdated and because termux only offers the latest version of node, which as of june 2023 is 20.2.0 it won't work at all. But then it mentions building termux repositories yourself - I haven't tried that yet. I imagine that you would need to cross-compile that version of node for android. It's definitely doable, but if it ever changes you will need to do it again, so I wonder if given that organice is a client-side SPA wouldn't it be possible to just bundle it with something like webpack and serve its html, css and js with another http server (on localhost)? That would be much easier.

@branch14 I'm trying to self host the app and use local files. The idea was to serve them with a webdav server (dufs). I think it's important to be able to self-host if you care about privacy. There has been a fork that allowed for direct access to local storage, but I couldn't find out how to build it.

from organice.

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.