add 3 lines to connOptions
in mogo.js
ssl: true,
authSource: 'admin',
replicaSet:'Cluster1-shard-0'
add 3 lines to connOptions
in mogo.js
ssl: true,
authSource: 'admin',
replicaSet:'Cluster1-shard-0'
Heroku keep crashing and restart, even with echo web: node app.js > Procfile
and nodejs engine 6.x.x
topic only has fields like uid, cid, title, contend, tags, pined
etc. I want to add a custom field to every topic like price: 50, subtitle: 'foo'
to internal topic DB and then retrieve later for users. Any ideas? Thanks!
@frgilb said in Publish content/post from other apps?:
@deha: I agree, with the write api plugin you should be able to solve your problem. There is even a python library available: https://pypi.python.org/pypi/pynodebb/. It is quite old but still works with up to date nodebb. Unfortunately, not all api calls are yet implemented, but it is easy (and quite obvious) to extend it.
@baris said in Publish content/post from other apps?:
Take a look at https://github.com/NodeBB/nodebb-plugin-write-api
Thanks, helpful.
Is there any way to publish content without click "new topic" button and copy paste?
Say I have a post like:
{
title: "title",
content: "test content",
category: "category1"
tags: ['tag1', "tag2"]
}
in python, Can I send a post request to nodebb to save this post? or write it directly to mongoDb?
Thanks!