Git Product home page Git Product logo

Comments (6)

AaronO avatar AaronO commented on August 21, 2024

Take a look at https://github.com/SamyPesse/reportr/blob/master/Procfile-free. Essentially once you've ran npm install all you need to do is run node bin/reportr.js run --mode=all.

You will also need to set a few environment variables that are used to configure reportr (using environment variables is a best practice, to provide flexible configuration at runtime to an app).

You should check out https://github.com/SamyPesse/reportr/blob/master/lib/config/main.js, to see which environment variables reportr accepts. (Look at variables with this process.env.* pattern).

reportr does of course provide defaults for these, but you'll most likely want to override them.

We could set node bin/reportr.js run --mode=all to the "start" script in the package.json. But even without it, it's rather obvious IMHO (the environment variable and configuration stuff might be less).

Give that a try, hope it works for you.

PS: I don't actively contribute to reportr but I'm Samy's co-founder @FriendCode, and reportr is built following many patterns we use internally so I'm familiar with the overall code structure.

from dashboard.

medikoo avatar medikoo commented on August 21, 2024

Thanks for great explanation. I think node bin/reportr.js run --mode=all should be configured as start script then, at least I don't see how it's obvious (not a word about that in main documentation)

from dashboard.

dirkk0 avatar dirkk0 commented on August 21, 2024

First of all: thanks @AaronO and @SamyPesse for Reportr! Awesome project.
Then I am with @medikoo on this one, so for other non-herokuans here is a script that gets you started and is working on Amazon EC2/Ubuntu 12.04.

So to just get this running with port 8000 and no credentials at all you can do this:

sudo apt-get install -y mongodb

git clone https://github.com/SamyPesse/reportr.git && cd ./reportr
npm install
make build

echo -e "
PORT=8000 \
FACEBOOK_CLIENTID=1 \
FACEBOOK_CLIENTSECRET=1 \
TWITTER_CLIENTID=1 \
TWITTER_CLIENTSECRET=1 \
FOURSQUARE_CLIENTID=1 \
FOURSQUARE_CLIENTSECRET=1 \
GITHUB_CLIENTID=1 \
GITHUB_CLIENTSECRET=1 \
RUNKEEPER_CLIENTID=1 \
RUNKEEPER_CLIENTSECRET=1 \
FITBIT_CLIENTID=1 \
FITBIT_CLIENTSECRET=1 \
node bin/reportr.js run --mode=all" > run.sh

chmod +x run.sh
./run.sh

from dashboard.

missinglink avatar missinglink commented on August 21, 2024

👍 @dirkk0 worked for me on ubuntu 12.04

from dashboard.

dirkk0 avatar dirkk0 commented on August 21, 2024

@missinglink great, thank you!

from dashboard.

SamyPesse avatar SamyPesse commented on August 21, 2024

Thank you @dirkk0

from dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.