MakeNews is for journalists and newsrooms. It helps you track news from web and social media in real-time.
MakeNews is for journalists and newsrooms. It helps you track news from web and social media in real-time.
npm install gulp -g
npm --version
in the console and it shall return the number of the certain installed npm version curl http://"your_database_ip":5984/database_name/_fti/design_doc/view_name?q=Query
gulp --version
in the console and it shall return the number of the certain installed gulp version(local and cli)1.Clone the makenews application repository from git
2. All the configuration related data must be mentioned in the install.config file
Comments: Facebook and Twitter appIds are not necessary to start the application, they are necessary for the actual connection between the app and facebook or twitter.
3. Start couchdb
4. Once the configurations are set in the install.config file, run the oneClickInstaller.sh file
5. Running this file installs the makenews application with the configurations set in the install.config
6. Towards the end of the execution, application user creation dialogue would be prompted on the console, enter the username and password for the intended user
Once the installation is successful, use the following command from the root folder, to start the server
node dist/server
The application would start running on the configured ip address and port, for the default configuration, http://127.0.0.1:5000
run createuser.sh file from dist folder
After changing any configuration, please run gulp build and restart the server
The server configuration file path is server/config/application.json
{
"default": { //default configuration
"serverIpAddress": "localhost", //ip address of the application server
"serverPort": 5000, //Port on which the server runs
"couchDbUrl": "http://localhost:5984", // couch db url
"searchEngineUrl": "http://localhost:5986/_fti/local", // lucene url
"userDbPrefix": "db_", //application user dbname prifix
"adminDetails": { //application admin details
"username": "admin",
"password": "admin",
"db": "common" //Common database for all users for storing web urls
},
"facebook": {
"url": "https://graph.facebook.com/v2.8",
"appSecretKey": "fb_appsecret", //facebook app appSecretKey
"appId": "fb_appId", //App id of facebook app
"timeOut": 2000, //timeout for request
"limit": 500 //limit for data from fb for a source
},
"twitter": {
"url": "https://api.twitter.com/1.1",
"authenticateUrl": "https://api.twitter.com/oauth/authenticate",
"consumerKey": "twitter_consumerKey", // twitter app consumer key
"consumerSecret": "twitter_consumerSecret" // twitter app consumer secret
}
},
"qa": { //environment specific, if we need diff config for qa environment you can add here
}
}
The client config file is makenews/client/config/config.js
if(!window.mediaCenter) {
window.mediaCenter = {};
}
window.mediaCenter.serverUrl = ""; //application server url
window.mediaCenter.facebookAppId = ""; //facebook appid
window.mediaCenter.autoRefreshSurfFeedsInterval = 300000; //time interval for refreshing feeds
window.mediaCenter.dbSessionInterval = 600000; //time interval for a login session
window.mediaCenter.storyAutoSaveTimeInterval = 300000; // time after which a story is auto saved
127.0.0.1
The procedure to build the application, and get your changes working, are
gulp build
npm test
npm run lint
//run static analysergulp clean
//cleaning dist foldercheck the gulpfile.js
for more gulp tasks
If your change need data migration follow below steps:
node dist/server/src/migration.js [--admin_user_name='username' --admin_password='password']