1. #1
    Sencha User olecom's Avatar
    Join Date
    Oct 2011
    Location
    Republic of Belarus
    Posts
    48
    Vote Rating
    6
    olecom is on a distinguished road

      0  

    Default App plaftorm on ExtJS 4.2 and node.js/node-webkit

    App plaftorm on ExtJS 4.2 and node.js/node-webkit


    http://existdissolve.com/category/ja...p-walkthrough/

    After reading this great walkthrough i finally could see how to put together a mutiuser platform for desktop-like office applications based on node.js/node-webkit as backend. It uses only senchalab's `connect` v2.9 and simplest JSON back-and-forth under Ext.data.Store contract (there's no ext.direct&stuff).

    App modules in MDI for one particular task or functionality. For example there are CarTracker and MVC FeedViewer modules. Also there are authentication using RBAC and simple chat app. All this can be a better path away from MS Excel/VBA or Delphi (and such).

    Live demo (users: dev, admin, test, utest with one password: pass) https://github.com/olecom/supro-demo

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    3,854
    Vote Rating
    66
    Gary Schlosberg has a spectacular aura about Gary Schlosberg has a spectacular aura about Gary Schlosberg has a spectacular aura about

      0  

    Default


    Nice work. Thanks for sharing the fruits of your labors with the community!
    Get on the Fast Track with Sencha Training http://sencha.com/training

  3. #3
    Sencha User olecom's Avatar
    Join Date
    Oct 2011
    Location
    Republic of Belarus
    Posts
    48
    Vote Rating
    6
    olecom is on a distinguished road

      0  

    Default app module: supromongod

    app module: supromongod


    Launch, control `mongod` process and provide `api.db` connection.
    https://github.com/olecom/supromongod

  4. #4
    Sencha User olecom's Avatar
    Join Date
    Oct 2011
    Location
    Republic of Belarus
    Posts
    48
    Vote Rating
    6
    olecom is on a distinguished road

      0  

    Default HOWTO: Initial developing of an app module (with screenshots)

    HOWTO: Initial developing of an app module (with screenshots)


    For those who may just started whole ExtJS / node.js learing process:
    https://github.com/suprojs/suprolftp...h-screenshots)

  5. #5
    Sencha Premium Member
    Join Date
    Apr 2014
    Posts
    54
    Vote Rating
    1
    rsravishankar is on a distinguished road

      0  

    Default


    I have an ExtJS webapp which I need to port as a desktop app for Windows and Mac immediately, but am encountering an issue with getting my JSON data via proxy in my resources. I am using node-webkit-v0.10.5-win-ia32 (and also tried rc11). I used the package.json as described, however I find it's unable to get my data files (fetched through proxy into the store. When hosted on a webserver - it works). I get "Uncaught node.js Error" (when I execute nw and the zipped file) and in the console I see "Uncaught ReferenceError: require is not defined" . I have the following file structure:

    - index.html
    - package.json
    - app (dir)
    - resources (dir)
    - data (dir)
    - Distributor.json
    ...
    ...


    And my code is as follows:
    Code:
            
    var store = Ext.create('Ext.data.Store', {
                model: 'Distributor_local',
                proxy: {
                    type: 'rest',
                    url: 'resources/data/Distributor.json',
                    reader: 'htrd'
    }
    The error points to the callback for this JSON request (mentions record of zero length - this is the same as if the file is not there when we run it under a webserver). I tried to use the useLocalHost option from command line, but it's doesn't help. I also have JSONP requests in my codepath (which fetch data from the web), but I haven't even reached there so far.

    I don't use any Node-webkit features, just need it for packaging.

    Can you please guide on how one should fix this issue and if there's any step that one needs to take for JSONP requests too?

    Thanking in anticipation.

  6. #6
    Sencha User olecom's Avatar
    Join Date
    Oct 2011
    Location
    Republic of Belarus
    Posts
    48
    Vote Rating
    6
    olecom is on a distinguished road

      0  

    Default


    This is more node-webkit than ExtJS/Ext.data.Store question, i think.

    Without full setup and source code i can not really say anything. Did you tried https://github.com/rogerwang/node-we...i/App-protocol ?

    While this "urgent" stuff is offtopic for completeness let me cross post notes from my post in https://groups.google.com/forum/#!to...it/NWbRKP2H_Vo

    It seems the fix is in Sencha ExtJS. I just got a response from them. The issue is likely due to loading an ajax request off the filesystem which will return an http status code of 0 which is not checked for in parsing. The parseStatus method in Ext.data.Connection has the following code:

    PHP Code:
    var success = (status >= 200 && status 300) || status == 304 
    To the above code, we need to add a check for status as 0 for success as well.
    Note, that xhr.status == 0 in case of successful load is for 'file://' proto (it is default). OTOH 'app://' has normal 200.
    Last edited by olecom; 30 Oct 2014 at 11:01 AM. Reason: add mailling list notes

  7. #7
    Sencha User olecom's Avatar
    Join Date
    Oct 2011
    Location
    Republic of Belarus
    Posts
    48
    Vote Rating
    6
    olecom is on a distinguished road

      0  

  8. #8
    Sencha User olecom's Avatar
    Join Date
    Oct 2011
    Location
    Republic of Belarus
    Posts
    48
    Vote Rating
    6
    olecom is on a distinguished road

      0  

    Default ExtJS 4.2 git repo

    ExtJS 4.2 git repo


    If was found that original release of 4.2.2 have had GPLv3 version:

    http://www.sencha.com/forum/showthre...ository!/page5

    So i've published GPLed changes, fixes, etc: https://github.com/suprojs/extjs-4.2

    Hope FSF member #6835 -- Sencha -- is not going to punish or sue...




  9. #9
    Sencha User olecom's Avatar
    Join Date
    Oct 2011
    Location
    Republic of Belarus
    Posts
    48
    Vote Rating
    6
    olecom is on a distinguished road

      0  

    Default suprolftpd: connecting back and front offices

    suprolftpd: connecting back and front offices


    To connect wide spread / distributed back and front offices (sale points, shops, warehouses, etc.) SUPRO requires reliable data transport of its events/documents. Secure FTP (over SSH) is used to transfer files by lftp via central peering point of SSH server. It's the simplest and the cheapest way of doing this.

    Though if SSH is in clear Internet then things like DOS, password brute force or other server holes are possible. Use VPN/LAN then.

    https://github.com/suprojs/suprolftpd/wiki