Git Product home page Git Product logo

Comments (15)

frdmn avatar frdmn commented on July 20, 2024
  1. Create a new cloud9 instance
  2. Clone the repository and upload all files into your workspace
  3. Open console (View -> Console)
  4. cd ~/<idOfYourWorkspace>
  5. npm install

To setup and run the MongoDB:

cd
mkdir data
echo 'mongod --bind_ip=$IP --dbpath=data --nojournal --rest "$@"' > mongod
chmod a+x mongod
nohup ./mongod &

Finally we have to setup a run script:

  1. cd ~/<idOfYourWorkspace>
  2. 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
  3. chmod +x run.sh
  4. ./run.sh

You can open your reportr instance:
https://reportr-c9-frdmn.c9.io/

from dashboard.

keepnone avatar keepnone commented on July 20, 2024

Thank you so much!

from dashboard.

frdmn avatar frdmn commented on July 20, 2024

You’re welcome! :)

from dashboard.

dirkk0 avatar dirkk0 commented on July 20, 2024

Good to see my script proved to be useful! Nice work on C9!

from dashboard.

keepnone avatar keepnone commented on July 20, 2024

Unfortunately, all I get is "No App Running" What should I do?

from dashboard.

frdmn avatar frdmn commented on July 20, 2024

Can you give us some output of your console?

Should look something like this:

frdmn@reportr:~/700304 (master) $ ./run.sh 
[log][database] Connection to mongodb://localhost/reportr ...
[log][database] Open on mongodb://localhost/reportr
[log][queue] start queue
[log][trackers] register tracker chrome
[log][trackers] register tracker facebook
[log][trackers] register tracker foursquare
[log][trackers] register tracker twitter
[log][trackers] register tracker github
[log][trackers] register tracker runkeeper
[log][trackers] register tracker fitbit
[log][api] register api auth
[log][api] register api data
[log][api] register api models
[log][api] register api events
[log][api] register api trackers
[log][api] start api server
[...]
[log][web] Server is listening on port 8080

 Cloud9  Your application is running at https://reportr-c9-frdmn.c9.io    

from dashboard.

keepnone avatar keepnone commented on July 20, 2024

I get this...

"./run.sh: line 1: FACEBOOK_CLIENTID=1419328741635292: command not found"

from dashboard.

keepnone avatar keepnone commented on July 20, 2024

Nevermind I got it, but how do you stop it running?

from dashboard.

frdmn avatar frdmn commented on July 20, 2024

Focus the terminal and just kill the process with CTRL + C.

from dashboard.

keepnone avatar keepnone commented on July 20, 2024

Ok, thanks! :)

from dashboard.

keepnone avatar keepnone commented on July 20, 2024

Sadly :( I can not get Facebook, Twiter, Foursquare and the others set up... When I click on them nothing happens...

from dashboard.

dirkk0 avatar dirkk0 commented on July 20, 2024

You need to set the 'FACEBOOK_CLIENTID=1 \ FACEBOOK_CLIENTSECRET=1' etc. Right now they are just the number '1' which of course is fake.

Here is a description on how you get these.

from dashboard.

frdmn avatar frdmn commented on July 20, 2024

@dirkk0 he already set them apparently at least it looks like that according to this comment.

@postrr Any console output as soon as you click on them?

Edit: i just tried to reproduce the problem and experienced the same problem. Not sure how to fix that since we don't have any stderr logs at all. I suggest you just set up a reportr instance on Heroku. Its free as well, at least if you run it with only one web dyno.

from dashboard.

keepnone avatar keepnone commented on July 20, 2024

So how would you install it on Heroku? With out entering a credit card.

from dashboard.

frdmn avatar frdmn commented on July 20, 2024

Clone the repository, and then follow the instructions here and then this one to deploy. Because you run the application with only one web worker/dyno, you wont get charged by Heroku. If you run into some problems, use heroku logs -t to get the latest log files of your instance.

Also, please close this issue since its not really related to it anymore.

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.