PubDictionaries aims to provide a platform in which users can easily share their dictionaries and automatically annotate texts with those dictionaries.
- Ruby v3.2.x
- Rails v7.0.x
- SimString v1.0
- ElasticSearch v7.x.x
Git clone and:
bundle
bin/rails db:create
bin/rails db:migrate
bin/rails runner script/create_index.rb
bin/rails s
docker compose build
docker compose up
docker compose run --rm web bin/rails test
Execute the following ur in the browser and log in with the pubdictionaries specific user account.
https://console.developers.google.com/
Create a pubdictionaries project. Example:
pubdictionaries
Click link(Enable APIs and services) to activate the API library:
Gmail API
OAuth consent screen.
User Type:
External
application name:
pubdictionaries
Create authentication information(OAuth Client ID). Application type:
Web Application
After creating an OAuth client, client id and client secret are generated:
client id
99999999999-xx99x9xx9xxxxxx9x9xx9xx9xxxxxx.apps.googleusercontent.com
client secret
xxxxxxxxx9xxxx9xx9x9xx99
Add an approved redirect URI.
[Same URL as environment variable(pubdictionaries)]/users/auth/google_oauth2/callback
cp .env.example .env
CLIENT_ID=[Generated client id]
CLIENT_SECRET=[Generated client secret]