Storage API support for Projects

Summary: Storing projects in AWS s3.
Issue: Whenever external storageModule is used, Projects API is returning 404.

settings.js

projects: {
  enabled: true,
     workflow: {
          mode: "manual"
      },
},
storageModule: require('./node-red-contrib-storage-s3')

@node-red/editor-api/lib/editor/projects.js

app.use(function(req,res,next) {
    runtimeAPI.projects.available().then(function(available) {
        if (!available) {
            res.status(404).end();
        } else {
            next();
        }
    })
});

@node-red/runtime/lib/api/projects.js

available: async function(opts) {
    return !!runtime.storage.projects;
},

Can storgeAPI support get and set projects to aws s3 storage or Can you please let me know if there is any way to configure projects for AWS S3 storage.

Thanks.

Hi @AbdulRahman

The Projects feature is part of the default Local File System storage plugin as it relies so heavily on having a git repository on the local disk and using the git command line tools.

I would like to find a way to provide a similar projects feature, or at least some sort of version control/history, via the Storage API without the reliance on git so other providers could be written. But that is not trivial and will take some time to do.

1 Like

Thanks for the quick reply @knolleary, Looking forward this feature.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.