My project requires me to make a file manager and I just saw elfinder and it looks great but it's in php and my project is in node(express). Is there a way to use elfinder in node?
I saw https://github.com/sax1johno/node-elfinder but it doesn't have any documentation on how to use implement it. And is there also a way to use Amazon s3 instead of the local folder?
Related
I want to use web push notification using onesignal. I create account on onsignal.com and i follow the steps (I choose chrome web push). But on step six is "Upload OneSignal SDK file". I download the files and i read the documentations but i couldn't understand it. I am using web app created on node js. Bellow I put the link of step 6 from OneSignal documentations.
https://documentation.onesignal.com/docs/web-push-typical-setup#section--span-class-step-step-6-span-upload-onesignal-sdk
Any help please. Thank you.
Actually it was simple, I was just confused and forgot some terms on node js. After some fight i fix it.
I just need to put the Unzipped file in my working directory (main root). Then make it publicly available. Simply like this, then it works.
app.use(express.static(path.("foldername")));
I am using pm2 to run several node applications. Problem is that I am using config files for every node application and so what I want to do is easily have say a json file outside of all the node application folders in which they can ALL point all for common database connections etc...
Prefer to not use linux environment variables unless there is an easy and great way of setting it up
pm2 does have the ecosystem, but it doesn't seem to be very well documented to me
what other solutions?
pm2 ecosystem // this generates .config.js not a .json
Create json or yml file. Put it in your root projects folder. And write "configProvider" which will read the file and populate configuration. It works really well for us. Especially this file can also been shared between different languages, not only javascript.
I have written a small helper module in regular NodeJS to be used with NodeJS batch scripts. I've placed this and all the batch scripts in the "private" folder inside my Meteor project.
I'd like to also use the helper module on the server-side of Meteor as well, but I don't know the best way to handle that.
This is my current project structure:
client
... client files ...
private
scripts
helpers.js
batch_script1.js
server
... server files ...
So for Meteor to include the "helpers.js" file into the server, it either has to be located in the "server" folder, or imported via a package. Creating a symlink won't work, as multiple developers will be working on this and may have the repository checked out to a different directory location (seeing as how you need an absolute path to create a symlink).
I also don't want to have to duplicate the file and maintain two copies, so what are my options for sharing a helper script between a Meteor app and a NodeJS script?
Thanks
I was able to find help on the Meteor forums: https://forums.meteor.com/t/use-nodejs-helper-script-in-meteor/11056/3
for a customer of mine i'm developing a node.js app.
I want to give him a simple setup program that handle the installation of node and relative modules in automatic without having to access the web.
Which is the best and efficient way to do that?
Thanks in advance
Just give him the node.js installer und zip your app (with node_modules directory). He just has to install node.js and extract the zip file. You could write a .bat file which starts the app. That should be easy enough.
I'm trying to use lesscss server side. It requires node.js for that, I've installed it and looked at some tutorials but now I have no idea how to use it. After you create a server/tcp or whatever how to you get to it from your website?
I wanna be able to do like mywebsite.com/css and when I go there it'll output the css that node.js tells it to.
What about this solution:
http://arguments.callee.info/2010/04/20/running-apache-and-node-js-together/