soixantecircuits / altruist Goto Github PK
View Code? Open in Web Editor NEWπ Gateway micro service for sharing content with ease βοΈ
π Gateway micro service for sharing content with ease βοΈ
the instructions of #profit
have to be updated, as -- -settings
is not needed.
The second parameter is already the path to the settings.json
file $ altruist path/to/settings/settings.json
OS: Ubuntu 16.04 LTS
The error is caused by a failed mkdir
Error: EACCES: permission denied, mkdir '/storage'
at Error (native)
at Object.fs.mkdirSync (fs.js:922:18)
at LocalStorage._init (/opt/player/sources/altruist/node_modules/node-localstorage/LocalStorage.js:151:12)
at new LocalStorage (/opt/player/sources/altruist/node_modules/node-localstorage/LocalStorage.js:121:12)
at Object.<anonymous> (/opt/player/sources/altruist/src/lib/localstorage.js:3:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/opt/player/sources/altruist/actions/facebook.js:7:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
provide a link where to get the token for slack
The file https://github.com/soixantecircuits/altruist/blob/master/src/lib/settings.js should simply use standard-settings.
Error at Strategy.parseErrorResponse (/usr/local/share/.config/yarn/global/node_modules/passport-facebook/lib/strategy.js:196:12) at Strategy.OAuth2Strategy._createOAuthError (/usr/local/share/.config/yarn/global/node_modules/passport-oauth2/lib/strategy.js:376:16) at /usr/local/share/.config/yarn/global/node_modules/passport-oauth2/lib/strategy.js:166:45 at /usr/local/share/.config/yarn/global/node_modules/oauth/lib/oauth2.js:191:18 at passBackControl (/usr/local/share/.config/yarn/global/node_modules/oauth/lib/oauth2.js:132:9) at IncomingMessage.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/oauth/lib/oauth2.js:157:7) at emitNone (events.js:110:20) at IncomingMessage.emit (events.js:207:7) at endReadableNT (_stream_readable.js:1047:12) at _combinedTickCallback (internal/process/next_tick.js:102:11) at process._tickCallback (internal/process/next_tick.js:161:9)
When I send a video stored on my computer to the facebook action
curl -X POST -H "Content-Type: multipart/form-data" -F "message=test" -F "[email protected]" "http://localhost:6060/api/v1/actions/facebook"
The video seems to upload to facebook, but when I check on my wall, only the message is displayed.
The mandrill action https://github.com/soixantecircuits/altruist/blob/master/actions/mandrill.js should support FILE request
The following settings, should be overridable through a post on the action
route.
Following params:
altruist/actions/youtube.js:70
app.get(profileURL, (req, res) => {
^
ReferenceError: profileURL is not defined
at Object.addRoutes (/Users/mina/sources/altruist/actions/youtube.js:70:11)
at fs.access (/Users/mina/sources/altruist/src/index.js:59:58)
at FSReqWrap.oncomplete (fs.js:114:15)
error Command failed with exit code 1.
There is only one reference to profileURL
variable in youtube.js, it is never declared.
Posting a message:
curl -X POST -H "Content-Type: application/json" -d '{
"message": "Hello Facebook again!"
}' "http://localhost:7070/api/v1/actions/facebook"
port 7070 doesn't work for me. I have to change it to 6060
PS:
in USAGE
Before being able to post, you will need to log in facebook by going to the url matching loginURL
it would be nice to know that i have to specify the prefix: prefix of localhost:6060/
before the matching loginURL, in htis case: login/facebook
For mandrill template, the default template language we use in altruist is handlebars.
So you are forced to use {{}}
instead of the standard pipe template language *||*
.
We should provide an option in mandrill action to setup template language to pipe. This means adding merge_language
key only if a custom template language is provided.
Things that would be great to know in the docs:
#profit
. It would be good to know that that is the command to launch altruist and the post
or any other action has to be in another terminal or other programsettings.json
file ?Sharing should be easy as using one route.
Based on the configuration the route will handle the automatic sharing principle
See :
https://github.com/soixantecircuits/altruist/blob/master/actions/facebook.js#L14
https://github.com/soixantecircuits/altruist/blob/master/actions/mandrill.js
https://github.com/soixantecircuits/altruist/blob/master/actions/twitter.js
https://github.com/soixantecircuits/altruist/blob/feature-print/actions/win32printer.js
and all the other action param. We should have a unique config loader, which allow for overriding settings. Thus it will make uniform the setting loading.
See all the existing methodologies :
http://exploringjs.com/es6/ch_destructuring.html
http://www.2ality.com/2014/01/object-assign.html
https://github.com/sindresorhus/deep-assign
https://github.com/jonschlinkert/assign-deep
Guess the best !
provide a link and a note that this service is using a private API and not the official API of instagram
https://github.com/mgp25/Instagram-API
Let says you want to use an action with different template :
currently you can only start altruist with a pre-defined template. You won't be able to change it on the fly. This could be awesome !
"This git branching model" links to a 404 page.
This issue is currently present both in the master and the development branch.
Currently the action mandrill only support same machine file sharing or URL.
This means that you either:
What would be is, is to be able to :
thanks !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.