Skip to content

evil-shrike/discourse-vk-login

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discourse VK.com Plugin

VK.com login for Discourse

Caution: there are no tests, use at your own risk!

Installation

the official Docker

To install in docker, add the following to your app.yml in the plugins section:

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git https://github.com/stereobooster/discourse-vk-login.git
          - cp discourse-vk-login/db/migrate/* db/migrate/

and rebuild docker via

cd /var/discourse
./launcher rebuild app

Set vk_client_id and vk_client_secret settings in the users section.

Stand-alone

Just two easy steps. From your main discourse do:

cd plugins
git clone https://github.com/stereobooster/discourse-vk-login.git
cd ..
export RAILS_ENV=production                    # set to productions
cp discourse-vk-login/db/migrate/* db/migrate/ # copy migrations
rake db:migrate                                # run migrations
rake assets:precompile                         # precompile assets

TODO

  • Fix share button
  • Fix plugin settings
  • Do not show button if there are no VK API keys
  • Add tests

License

MIT

Development

Examples of code:

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 87.5%
  • JavaScript 8.9%
  • CSS 3.6%