Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    PeterKieu
    @PeterKieu
    To make Total.js better, I found this article: https://blog.jayway.com/2015/04/13/600k-concurrent-websocket-connections-on-aws-using-node-js/ in which I can use high performance websocket https://github.com/websockets/ws
    Peter Širka
    @petersirka
    @PeterKieu Total.js supports websocket similar to ws ... It's optimized for the best performance too. About concurrrent connections, you can do it with Total.js too, but it depends what do you want to do with app. Nothing more :-)
    PeterKieu
    @PeterKieu
    @petersirka Can you add Firebase DB for any CMS/eshop/openplatform? That is extremely worthy core value for Totaljs
    Peter Širka
    @petersirka
    @PeterKieu no, this is not possible. OpenPlatform uses PostgreSQL and CMS/EShop NoSQL embedded. Our apps aren't open for any database, they are optimized for the specific DB engine.
    PeterKieu
    @PeterKieu
    Ok, we see. Because you are the author who keeps all rights. But it can limit community innovation on lovely Totaljs ecosystem to make it stronger and more popular like Koa, Strapi... OSS projects. We hesitate to join Totaljs and contribute more design patterns, on-product use cases
    PeterKieu
    @PeterKieu
    My idea is that You can open your business with Firebase on Totaljs.
    Peter Širka
    @petersirka
    Yes, I agree - but we optimize products for our cases only - to end users (end users paid development). We don't like dependencies because dependencies can be hell in some critical situations. I don't mean dependencies from NPM, I mean external services.
    rajasekark54
    @rajasekark54
    Hi , I want total.js cms version (v12). So could you please give the link?. Thanks
    rajasekark54
    @rajasekark54
    hi any one can send me download link for total.js version 12 ?
    PeterKieu
    @PeterKieu
    @rajasekark54 you can find it on Github or homepage with signup account
    It run very fast on minipc like intel j1900 8GB RAM
    mjobuda
    @mjobuda
    hi
    can anybody help me configuring totaljs messenger to work on port 80
    so far i could proxy it with nginx to work on port 80, but then i get errors that my browser couldnt connect to the web.
    i can then add new users, but if i go to mysite/users/ i see only the admin! and i can't join conversations. Whereas when i go in the browser to mysite:originalport/users/ everything works fine! the problem occurs even if i don't use nginx but start messnger on port 80
    Peter Širka
    @petersirka

    Hi, what's the problem? I think that your Nginx config doesn't contain correct settings for websocket, example:

        server {
            listen 80;
            server_name totaljs.com;
            server_name www.totaljs.com;
            charset     utf-8;
    
            location / {
                proxy_set_header   Host $http_host;
                proxy_set_header   X-Forwarded-For $remote_addr;
                proxy_set_header   X-Forwarded-Proto $scheme;
                proxy_set_header   X-NginX-Proxy true;
                proxy_pass         http://0.0.0.0:8000;
                proxy_redirect     off;
                proxy_http_version 1.1;
                proxy_set_header   Upgrade $http_upgrade;
                proxy_set_header   Connection "upgrade";
                break;
            }
        }

    I recommend to install SuperAdmin on your server and the install Messenger via SuperAdmin.

    mjobuda
    @mjobuda
    did not solve the problem! exactly the same
    http://mirkomarko.pl:8000/users/
    works good and shows 2 users
    http://mirkomarko.pl/users/
    shows only admin
    you can login yourself if you want with standard credentials
    console gives in the second case the error that cood noct connect to the webservice at ws://mirko...
    Thanh (Terry) D. TRAN
    @TerryTran
    Hello, does anyone know where TotalJS store data of Flow application?
    And is it possible to use MySQL to store Flow application data?
    PeterKieu
    @PeterKieu
    Totaljs apps (Flow, CMS ...) all use NoSQL embedded, this can be saved on disk
    This is fastest NodeJs framework and great no-dependency. But the community is small
    Peter Širka
    @petersirka
    @TerryTran no, Total.js Flow can't be stored in MySQL (it's possible, but Flow needs to be modified).
    @PeterKieu thank you
    aniketwagh17
    @aniketwagh17
    I am using Total.js flow. There is only option for NoSQL database. Is there any component available so I can use ORACLE database ? Please reply as soon as possible.
    Peter Širka
    @petersirka
    @aniketwagh17 no, but you can create your own Flow component which will support ORACLE DB. I don't see any problem.
    lancedouglas1
    @lancedouglas1
    Hello @petersirka , Totaljs Flow is really good, well done. Do you have documentation on properly hosting it in scalable serverless architecture with a centralized nosql?
    Peter Širka
    @petersirka

    Hi @lancedouglas1, thank you.

    Do you have documentation on properly hosting it in scalable serverless architecture with a centralized nosql?

    Good question. We offer Cloud services, but not auto-scalable for some Total.js app - for this case we're preparing Total.js Threads cloud hosting - https://docs.totaljs.com/latest/en.html#pages~Threads ... Flow isn't scalable, but we have prepared something special for Flow too.

    You can test our cloud services: https://platform.totaljs.com
    aniketwagh17
    @aniketwagh17
    image.png
    image.png
    I am facing this typo error continuously. Please anyone can help me out.
    TypeError: process.getuid is not a function TypeError: process.getuid is not a function
    Please reply as soon as possible.Thank you
    Peter Širka
    @petersirka
    Hi @aniketwagh17, our community is on platform.totaljs.com. I don't see your project, but I think that you have replaced process or process.getuid variable. Which version of Node.js do you use?
    Martin Smola
    @molda
    @aniketwagh17 process.getuid is not available on Windows. https://nodejs.org/api/process.html#process_process_getuid
    Peter Širka
    @petersirka
    Ohh, I forgot on OS ... Thank you Martin.
    aniketwagh17
    @aniketwagh17
    @petersirka @molda Is there any way to work it successfully on windows, So I don't get any error while using my flow components and get expected output.
    Martin Smola
    @molda
    @aniketwagh17 It should be fixed. Try new version from github.
    aniketwagh17
    @aniketwagh17
    Hey , Can I connect hazelcast with Total.JS flow and make any component of hazelcast. Will that work ?
    Peter Širka
    @petersirka
    Hi @aniketwagh17, here is Node.js library: https://hazelcast.org/imdg/clients-languages/node-js/ so you can use it in Total.js without any problem.
    aniketwagh17
    @aniketwagh17
    @petersirka Okay thank you
    aniketwagh17
    @aniketwagh17

    @petersirka @molda Hello, I was trying to run batch file from backend on apply button. So I tried following code in index.html-

    function executeAfterApply(){
    alert('Apply button clicked' );
    //WshShell = new ActiveXObject("Wscript.Shell");
    //WshShell.run("d://temp/batchfile.bat");

       const { exec } = require("child_process");
    
        exec("d:/temp/batchfile.bat", (error, stdout, stderr) => {
            if (error) {
                console.log(`error: ${error.message}`);
                return;
            }
            if (stderr) {
                console.log(`stderr: ${stderr}`);
                return;
            }
            console.log(`stdout: ${stdout}`);
        });         

    };
    ( I refer this code from following link):- https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback

    But, I am getting this error :-
    default.js:50 Uncaught ReferenceError: require is not defined
    at executeAfterApply (default.js:50)
    at Zt.callback ((index):1)
    at Zt.self.hide (default.js:59)
    at HTMLButtonElement.<anonymous> (default.js:59)
    at HTMLDivElement.dispatch (default.js:38)
    at HTMLDivElement.y.handle (default.js:38)

    @petersirka @molda Can you guys please help me out. Or tell me appropriate way of achieving this. Thank you
    Martin Smola
    @molda
    @aniketwagh17 You don't seem to understand how things work between browser and server. Also require is Node.js specific(only works on the server) so it won't work in the browser.
    You can send a request to the server and then run the exec command on the server. Also if this file d:/temp/batchfile.bat is on the client side you would need to upload it to the server first. BUT that's a really BAD idea to allow poeple to upload executable script on your server and let them run it.
    aniketwagh17
    @aniketwagh17
    @molda Okay, Will look into that. Thank you for reply and information.
    aniketwagh17
    @aniketwagh17
    Can you please share the link for server side code
    aniketwagh17
    @aniketwagh17
    Hi,
    @petersirka @molda Is there any facility in totaljs flow, so that we can store information globally(like map, list or any data structure) and then every component can access that information. Please Reply as soon as possible.
    Thank you
    Martin Smola
    @molda
    @aniketwagh17 You can use FLOW.set(key, value) and FLOW.get(key) It's in the documentation --> https://github.com/totaljs/flow#flow
    aniketwagh17
    @aniketwagh17
    @molda Thank you.
    aniketwagh17
    @aniketwagh17

    Hi,
    @petersirka @molda I have 2 Queries.
    1] In Total Js FLow there is play and pause button. What is actual use of it ? Can I use That button for trigger my flow( Means instead of using trigger component in flow can I replace its functionality with play-pause button).

    2] And As we know FLOW is global . I can access it any component. But what if I want to use it in html(Means in export.html inside script tag)Is that thing possible ??

    aniketwagh17
    @aniketwagh17
    Hi,
    any opinions on above Questions. If yes please do share. Thank you
    aniketwagh17
    @aniketwagh17
    Hello,
    I want to trigger my code without using trigger component instead of that I want to control it using play/pause button(nearby Apply button). Is that possible ??
    And what is use of play/pause button in actual ?
    Please reply as soon as possible. Thank you.
    Peter Širka
    @petersirka

    @aniketwagh17

    1. In Total Js FLow there is play and pause button
    It pauses the entire Flow, so all inputs will be disabled.

    2. And As we know FLOW is global
    You can access it from server-side code only. So you can use global on client-side (for this case you need to send some values from globals via TRIGGER - only in settings section).

    3. I want to trigger my code without using trigger component instead of that I want to control it using play/pause button(nearby Apply button)
    I recommend to create some custom empty HTML page where will be a button called e.g. TRIGGER. If the user clicks on the button then you need to send a request to server and executes some Flow component manually - it's easy.

    BTW: we don't use Gitter. Ianswer on platform.totaljs.com or on Telegram https://t.me/totaljs