Skip to content
This repository has been archived by the owner on Feb 2, 2020. It is now read-only.
/ backchat Public archive

Add feedback forms to websites and pass results to services such as email, Zendesk, and Slack

License

Notifications You must be signed in to change notification settings

AusDTO/backchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backchat

DEPRECATED Try something like https://github.com/ohmyform/ohmyform instead

Circle CI

Backchat is a system for enabling contact or feedback forms to be submitted from other websites and then passed on via various services such as email, Zendesk, and Slack.

Backchat is in active development. However it is alpha software and not yet being used by the DTO on any production sites.

Development

TODO

  • Add teams and team form ownership
  • Improve submission browsing including CSV download, filter, columns, expand out JSON etc.
  • Generated forms based on defined fields
  • Have defined input fields with human readable titles and max length/size including uploaded files
  • Rate limiting for form submission
  • Re-enable file uploads http://edgeguides.rubyonrails.org/active_storage_overview.html

Installing on OS X

#install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#install rbenv
brew install rbenv ruby-build

# Add rbenv to bash so that it loads every time you open a terminal
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile

# Install Ruby
rbenv install 2.5.0

#missing openssl.h
brew install openssl
brew link openssl --force
#Can't find the 'libpq-fe.h header
brew install postgresql
initdb /usr/local/var/postgres
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
# logs etc. in /usr/local/var/postgres/
createdb backchat_development
createdb backchat_test
#install deps
bundle install
echo 'SECRET_KEY_BASE=`rake secret`' > .env
# setup db with seed data
bin/rake db:create
bin/rake db:setup

# rebuild db with seed data
# need to revoke app if using google login if DB is wiped
# https://security.google.com/settings/security/permissions
bin/rake db:drop
bin/rake db:create
bin/rake db:migrate
bin/rake db:seed

Setting Up / Deploying to Cloud Foundry

Thanks to http://docs.cloudfoundry.org/buildpacks/ruby/ruby-tips.html

cf create-service postgres shared backchat-db
cf push
# https://docs.pivotal.io/pivotalcf/devguide/services/migrate-db.html
cf set-env backchat SECRET_KEY_BASE `rake secret`

cf set-env backchat GOOGLE_CLIENT_ID '123.apps.googleusercontent.com'
cf set-env backchat GOOGLE_CLIENT_SECRET 'abcxxx'

cf push -c "bundle exec rake db:structure:ar_load QUE_MODE=off QUE_WORKERS=0" #first time setup
cf push
# http://docs.cloudfoundry.org/buildpacks/ruby/ruby-tips.html#workers + https://github.com/chanks/que
cf push -f worker-manifest.yml

Copyright & License

Copyright Digital Transformation Office. Licensed under the MIT license. See LICENSE file for more details.

About

Add feedback forms to websites and pass results to services such as email, Zendesk, and Slack

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •