Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    arashdoescode
    @arashdoescode
    This new open source is truly revolutionary
    Which is megaboilerplate
    I dont know how to repay him
    Dipesh Bhardwaj
    @Dev-Dipesh

    @sahat @uptownhr
    Hola Guys!
    I'm looking for a solution to a problem I'm currently facing, any kind of help will be greatly appreciated.
    I've an array of 35 Yahoo WOEIDs in woeids.trends_country_capital, with which I want to fetch twitter trends for respective WOEIDS. Now twitter has a limit of 1 req/min for it's trends API, so I would like to fetch 35 WOEID's trends with 1 at a time and once all done will repeat the process indefinitely.

    node module - cron

    const worldWide = new CronJob({
      cronTime: '0 */35 * * * *',
      onTick: function() {
        _(woeids.trends_country_capital).forEach(woeid => {
            new CronJob('0 */1 * * * *', function() {
                trendsCountry.get('/trends/place', {id: woeid}, function(error, trends, response) {
                    if (!error) {
                        dbCountries.countries.update(
                            { woeid: woeid },
                            {
                                woeid: woeid,
                                trends: trends[0].trends,
                                lastUpdated: new Date().getTime()
                            },
                            { upsert: true },
                            function (err, data) {
                                console.log(err, data);
                            }
                        )
                    }
                });
            }, null, true, 'America/Los_Angeles');
        });
      },
      start: false,
      timeZone: 'America/Los_Angeles'
    });
    Sahat Yalkabov
    @sahat
    @lundgren2 Max's react-boilerplate has a lot of nice features but it can be overwhelming for beginners. In my latest React project, I took a few good ideas like "CSS modules" from there and used Mega Boilerplate's project structure. Keep it as simple as possible, there is no need to over-engineer.
    Sahat Yalkabov
    @sahat
    Using a combination of async.queue and async.forEach.
    arashdoescode
    @arashdoescode
    @sahat i couldnt find any existing tutorials for socket.io using react , even in the megaboilerplate, its only on the server
    James Lee
    @uptownhr
    @Dev-Dipesh so what is your problem :) ?
    Dipesh Bhardwaj
    @Dev-Dipesh
    Thanks @sahat, I missed that.
    @uptownhr yeah right ;)
    Dipesh Bhardwaj
    @Dev-Dipesh

    Heya guys -
    I have a project at hand, where I'm bit confused in picking up the right database. Project requirements are as follows -

    Data Size -> Small JSON dataset with overall data size in complete database can go as high as 5 Mb. That's right overall size comprised of all datasets.

    Write Frequency -> From 1 write per minute to 16 write per minute at max with a data set size of 10 Kb.

    Read Frequency -> Can scale up to several thousands to millions of request per second.

    Dipesh Bhardwaj
    @Dev-Dipesh
    Volt, Unqlite and Loki are already on my radar, will be looking for more suggestions.
    Above, the important section is the read frequency, where at times I have to write 0 - 15 requests at most while requesting data.
    Stevo Perisic
    @stevoPerisic
    First off, great resource, thank you very very much for putting this together Sahat!
    Next, question, how to set up live-reload?
    Stevo Perisic
    @stevoPerisic
    n/m I got it :)
    tackpapa
    @tackpapa
    has anyone tried instagram api?
    im having issues with ------OAuthPermissionsException: This request requires scope=public_content, but this access token is not auth
    orized with this scope. The user must re-authorize your application with scope=public_content to be granted this per
    missions.-------- this error
    Welder Marcos
    @weldermarcosxd
    Hello there
    can anyone please provide the first steps to take after download the boiler plate?
    Ive generated a simple nodejs project with bootstrap and git authentication, but none of the functions of login, contact do work or throw errors , ty
    Tobias Lundgren
    @lundgren2
    have you run npm install?
    Niall O'Brien
    @niallobrien
    We need a bit more info I'm afraid
    Dale V Ross
    @dalevross
    Currently at a TADHack event in Orlando. Thanks guys!
    Now to learn node and win :D
    Dale V Ross
    @dalevross
    Anyone around?
    Dale V Ross
    @dalevross
    Any tips for quickly deploying to digitalocean?
    Dale V Ross
    @dalevross
    csrf verification
    Niall O'Brien
    @niallobrien
    @dalevross I'd use Zeit Now
    Dale V Ross
    @dalevross
    Thanks @niallobrien.
    I turned off csrf validation during the hackation as I was having trouble identifying where to make it just be that one post request I needed.
    I’ll check out zeit for deployment, I just went with git in the end.
    Niall O'Brien
    @niallobrien
    @dalevross how'd the Hackathon go? What did you build?
    Dale V Ross
    @dalevross
    I intended to build an online repository of “All the Things"
    I got tripped up by my lack of expertise in Node/Mongo development :)

    But I loved the project so much I reckon I’d take the risk and enjoy the weekend, regardless.

    Think of it as pinterest/instagram for JSON, with a front end.

    Dale V Ross
    @dalevross
    It’ll hopefully be at allthething.dajengroup.com by tonight (EST)
    Dale V Ross
    @dalevross
    Anyone here with experience troubleshooting PM2?
    Niall O'Brien
    @niallobrien
    Sorry @dalevross I've never had any major issue with PM2.
    Dale Ross
    @dvross-dev
    Someone pointed me here...Unitech/pm2#319
    So I'll be checking that out when I get home/
    Dale V Ross
    @dalevross
    I think I may have found the problem with PM2 but working through Mongo learning pains.
    Niall O'Brien
    @niallobrien
    Care to share?
    Dale V Ross
    @dalevross
     * Load environment variables from .env file, where API keys and passwords are configured.
     */
    dotenv.load({
      path: __dirname + '/' + '.env'
    });
    Niall O'Brien
    @niallobrien
    Awesome
    Dale V Ross
    @dalevross
    added _dirname, as it appears PM2 had a problem with the location.
    Niall O'Brien
    @niallobrien
    I have some forks of this repo, but in my latest fork, I'm scaling back a bit so it doesn't deviate too far from this project.
    Dale V Ross
    @dalevross
    I tried to add authentication and ran into an issue I haven’t figured out yet.
    SCRAM-SHA-1 authentication failed for username on dbname from client 127.0.0.1 ; AuthenticationFailed SCRAM-SHA-1 authentication failed, storedKey mismatch
    Any ideas or previous experience with this error?