App for generating and updating spreadsheets used in making an inventory of govuk documents on a specific subject or subjects.
It runs on heroku at http://inventory-tool.herokuapp.com/
This is a Heroku Ruby on Rails application that maintains a database of spreadsheets that the application has created, and other data. The app uses GoogleDrive gem to create and update the spreadsheets.
- redis
- postgresql
If this step is skipped, the sidekiq jobs will make you follow the OAuth process every time you regenerate an inventory.
- Go to https://console.developers.google.com and create a project
- In Google API manager go to Credentials and add OAuth credentials with type "Other"
- Set environment variables and run the following rake task: GOOGLE_CLIENT_ID=... GOOGLE_CLIENT_SECRET=... bundle exec rake google:auth
- Follow the instructions to get a GOOGLE_REFRESH_TOKEN. Note that this is a non-expiring token that will grant access to anything in your google drive.
- In API manager, search for Drive API and enable it.
redis-server
GOOGLE_CLIENT_ID=... GOOGLE_CLIENT_SECRET=... GOOGLE_REFRESH_TOKEN=... bundle exec sidekiq
USERNAME=test PASSWORD=test bundle exec rails sIf you are running the app in your development VM, the URL will be http://10.1.1.254:3000/
Enter the username and password that you passed in the environment variables.
bundle exec rakeThe master branch is automatically deployed to Heroku.
See the wiki: https://gov-uk.atlassian.net/wiki/pages/viewpage.action?pageId=47677552
