Your knowledge base is an incredibly important component of your company, providing value to your customers, employees, and other stakeholders! The purpose of this project is to help you gain more control over it.
- Back up your knowledge base to S3
- Import your knowledge base into your application
- Search your knowledge base with keywords
- Prerequisites/Requirements
- Knowledge Base Providers
- Storage Services
- Installation
- Environment Variables
- Usage
- Contact
- Roadmap
- License
- Rails 4.2+
- Ruby 2.5+
- Zendesk
- Amazon Simple Storage Service (Amazon S3)
Add this line to your application's Gemfile:
gem 'guidepost'
And then execute:
$ bundle
Make sure to have certain environmental variables set, preferrably in your .bash_profile
or in your .bashrc
! The prefix of each environment variable needs to be the uppercased version of the name of your project that you will use to initialize your Guidepost::Provider
(i.e. Zendesk in this case, since this is the only provider currently supported):
# The email associated with your Zendesk subdomain
ENV["#{YOUR_PROJECT_NAME}_GUIDEPOST_ZENDESK_EMAIL"]
# The password token associated with your Zendesk subdomain
ENV["#{YOUR_PROJECT_NAME}_GUIDEPOST_ZENDESK_PASSWORD_TOKEN"]
# The access key associated with your AWS account
ENV["#{YOUR_PROJECT_NAME}_GUIDEPOST_AWS_ACCESS_KEY_ID"]
# The secret key associated with your AWS account
ENV["#{YOUR_PROJECT_NAME}_GUIDEPOST_AWS_SECRET_ACCESS_KEY"]
# The AWS region associated with this project
ENV["#{YOUR_PROJECT_NAME}_GUIDEPOST_AWS_REGION"]
# The name of the S3 bucket you want to upload your backups to
ENV["#{YOUR_PROJECT_NAME}_GUIDEPOST_S3_BUCKET_NAME"]
# The subdomain of your Zendesk account
subdomain = "spotify"
# The name you want to give to your project (name your environment variables accordingly)
project_name = "employee-portal"
zendesk = Guidepost::Provider::Zendesk.new(subdomain: subdomain, project_name: project_name)
zendesk.backup_all_articles(sideload: true)
$ rake zendesk_guide:backup_articles[spotify,employee-portal]
$ rails g guidepost:models
$ rails g guidepost:migrate
$ rake zendesk_guide:import_guides_into_database[spotify,employee-portal]
# The subdomain of your Zendesk account
subdomain = "spotify"
# The name you want to give to your project (name your environment variables accordingly)
project_name = "employee-portal"
# The keyword(s) you're searching for in articles
query = "analytics"
zendesk = Guidepost::Provider::Zendesk.new(subdomain: subdomain, project_name: project_name)
zendesk.search(query: query)
If you find and want to address any security issues with the project, email me! For anything else, like bug identifications or feature requests, feel free to file a Github issue or tweet me @srinitude.
- Tests
- More robust documentation
- More relevant use cases
Guidepost is released under the MIT License.