Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Dale Ross
    Someone pointed me here...Unitech/pm2#319
    So I'll be checking that out when I get home/
    Dale V Ross
    I think I may have found the problem with PM2 but working through Mongo learning pains.
    Niall O'Brien
    Care to share?
    Dale V Ross
     * Load environment variables from .env file, where API keys and passwords are configured.
      path: __dirname + '/' + '.env'
    Niall O'Brien
    Dale V Ross
    added _dirname, as it appears PM2 had a problem with the location.
    Niall O'Brien
    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
    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 ; AuthenticationFailed SCRAM-SHA-1 authentication failed, storedKey mismatch
    Any ideas or previous experience with this error?
    Niall O'Brien
    None I'm afraid. I must dig out a project I did in which I added Slack auth to Hackathon Starter - would be a nice PR.
    Dale V Ross
    I should say, I tried to add auth to the MongoDB connection string.
    Dale V Ross
    ..and now that I’m more awake, you know what I mean, I tried to increase security of my mongoDB instance, so I created a new user for my database, gave it readWrite, updated the connection string and I’m seeing that error..
    Niall O'Brien
    Gotya. How are you liking the project so far?
    Dale V Ross
    Prreetty awesome if I can get my mongoose/Node/pug prowess up to scratch :D
    One look and I knew it was what I’ve been dreaming of.
    Niall O'Brien
    Awesome. After fiddling with the assets for so long, I've settled on leaving the sass as is, but using Webpack to compile my es6 JS
    It also included cache busting of the JS assets for prod which is nice
    Sarkis M
    Anyone know what the method override syntax is with the new pug? What would be the pug equivalent of the ejs: <form action="/campaigns/revive/<%= revive._id %>?_method=DELETE" method="post">
    Hi guys, I just finished deploying the "sahat/hackathon-starter"
    however when I enter the "localhost:3000" on firefox or chrome or safari is not displaying the page.
    have any of you had this issue?
    I installed on Linux CentOS 7
    thanks a bunch in advance! :-)
    Dipesh Bhardwaj
    Niall O'Brien
    Ctrl/Cmd+click on the URL your terminal gives you once the server has started @brnzi
    @SakoMe I'm on mobile atm but try form(action='URL here' + revive._id + '?_method=DELETE', method='POST')
    And indent button Delete underneath
    hi guys someone was able to deploy hackathon-starter to zeit now?
    here is my deploy:
    I can't understand what is wrong, any idea?
    ok solved removing sass dependencies and upload dir creation

    guys i am getting this error any idea why?
    npm install
    npm ERR! Darwin 16.3.0
    npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
    npm ERR! node v6.9.4
    npm ERR! npm v3.10.10

    npm ERR! Invalid name: "@types/express"
    npm ERR!
    npm ERR! If you need help, you may report this error at:
    npm ERR! https://github.com/npm/npm/issues

    npm ERR! Please include the following file with any support request:

    @sahat could you look at it?
    Tobias Lundgren
    @maithreya have you tried to re-installed node and npm?
    Ahmad Abugosh
    hey everyone, I'm trying to do a simple post request on a form and I get the error "Error: CSRF token missing", what am I missing?
    Ahmad Abugosh
    never mind, somehow missed it in the faq
    yay hello everyone, i finally found this place :smile: thank you for all your fantastic efforts sahat
    Yusuf Adeyemo
    Welcome @slidenerd
    Nischay Venkatram
    Hey everyone, I created this really simple express app generator the generates a basic express app without extra stuff like handlebars and additional modules. I find it useful when I want to spin up a really simple server that does not need any of the additional stuff that comes with express generator. Feel free to use it and contribute if you would like to see any additional features! https://github.com/nischayv/express-gen
    Kuriakin Zeng
    Hello @sahat and everyone. I have followed the steps here https://github.com/sahat/hackathon-starter#getting-started but still couldn't get it to work. I have renamed env.example to .env and provided the MONGOLAB_URI
    But when I run npm start, it gives me Client requires an Account SID and Auth Token set explicitly or via the TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN environment variables
    Since the error occurs in node_modules/twilio/lib/Client.js:22, I added console.log(process.env) to where SID and TOKEN were required
    But didn't find any of the variables set in .env
    Seems like that file doesn't read the .env file
    Anyone has an idea how to solve this?
    ok never mind, I just read that I should change dotenv.load({ path: '.env.example' });
    hey guys, http://hackathonstarter-sahat.rhcloud.com/ seems to be down
    Kuriakin Zeng
    it is down from my side too
    btw, does anyone know why the code in js/main.js doesn't get compiled when I run npm start?
    it's in the one in public folder. should I run some special command?