Skip to content

readingr/provenance

Repository files navigation

Getting Started

To begin the project, navigate in terminal to this directory and follow the steps below:

Assumed knowledge includes being able to install rails projects. However, Ruby-1.9.3-p327 is needed to run this project, and follow the link below to install the debugger.

stackoverflow.com/questions/10916784/error-installing-debugger-linecache-in-ruby-1-9-3

  1. Create the database using “rake db:create” and “rake db:migrate” in the root folder, and the micropost server folder.

  2. use command “Rails server” in the root directory. The access this, go to: 127.0.0.1:3000/. Before registering:

  3. Open up a separate terminal window, and navigate to the server directory. Under here, run the command “python run server”. The access this, go to: 127.0.0.1:8000/ and create an account. Generate an API key.

  4. Open up a separate terminal window, and navigate to the micropost’server directory. Under here, run the command “rails server -p 3001. ”The access this, go to: 127.0.0.1:3001/. Create an account and enter the API key

  5. Go to 127.0.0.1:3000, create an account and enter the appropriate details.

  6. Go to 127.0.0.1:3000/data_providers and create 3 data providers. They only need a name - “Facebook”, “Twitter”, “Micropost”

  7. Keep all three terminal windows running, and the system should work just fine.

Warning - As Facebook & Twitter are awkward, if you try to create a new data provider user on 127.0.0.1, and choose facebook, it won’t work. You need it to be on Localhost. Twitter is the other way around.

If you want to host this on a server, you will need to create your own Facebook and Twitter applications. In addition, you’ll need to set the environment variables to match up with the new addresses.

To set up the cron job, you can use the whenever gem using the commands:

“whenever -w” to write the cron job

“whenever” to start the cron job

“whenever -c” to clear the cron job

“whenever -h” to get help

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published