- Install MySQL, Golang & Git
- Create a schema called cbng_review
- Create an OAuth application via
https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose
- Select OAuth 1.0a
- Do not select 'This consumer is for use only by xxxx.'
- Enable 'User identity verification only, no ability to read pages or act on a user's behalf.'
git clone https://github.com/cluebotng/reviewng
- Within the repo create
config.yaml
with suitable settings, example below - Import the database tables & seed data
mysql cbng_review < sql/schema.sql
- Optionally update the seed data, see sql/README.md
cat sql/data.*.sql | mysql cbng_review
- Start the application
go run main.go
- Call the import endpoint to load pending report entries
http://localhost:8080/api/report/import
- Login/view the interface
http://localhost:8080/
- Optionally check there are some report entries loaded
http://localhost:8080/api/report/export
and/or check there are some calculated statshttp://localhost:8080/api/cron/stats
Last active
August 24, 2021 12:28
-
-
Save DamianZaremba/d9e2d5da3374711fb4234c8b46ac5b94 to your computer and use it in GitHub Desktop.
https://github.com/cluebotng/reviewng local setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db: | |
host: 127.0.0.1 | |
user: root | |
pass: | |
name: cbng_review | |
session: | |
key: <something random> | |
oauth: | |
token: <from oauth setup> | |
secret: <from oauth setup> | |
wikipedia: | |
update_stats: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment