Skip to content

pubannotation/pubdictionaries

Repository files navigation

PubDictionaries

About

PubDictionaries aims to provide a platform in which users can easily share their dictionaries and automatically annotate texts with those dictionaries.

Requirements

Without docker

Install

Git clone and:

bundle
bin/rails db:create
bin/rails db:migrate
bin/rails runner script/create_index.rb

Launch

bin/rails s

With docker

Install

docker compose build

Launch

docker compose up

Run tests

docker compose run --rm web bin/rails test

Deployment

Google authentication procedure

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

Create .env file.

cp .env.example .env

.env file settings.

CLIENT_ID=[Generated client id]
CLIENT_SECRET=[Generated client secret]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published