Skip to content

Update docs#66

Draft
nellshamrell wants to merge 2 commits into
nyc-cto:masterfrom
nellshamrell:update-docs
Draft

Update docs#66
nellshamrell wants to merge 2 commits into
nyc-cto:masterfrom
nellshamrell:update-docs

Conversation

@nellshamrell
Copy link
Copy Markdown

This is still a work in progress

Signed-off-by: Nell Shamrell <nellshamrell@gmail.com>
Signed-off-by: Nell Shamrell <nellshamrell@gmail.com>
Copy link
Copy Markdown
Collaborator

@liquidsteves liquidsteves left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woot! Very glad you are doing this. Thanks so much for diving in.

Comment thread import_export/README.md
a. Go to the [Google API Console](https://console.developers.google.com/apis/credentials)
b. Create a project, if you have not already
c. Go to `Create Credentials --> OAuth client ID`
c. Go to `Create Credentials --> OAuth client ID` (TODO: What Application Type should you choose?)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matt is looking into that.

Comment thread docs/getting-started.md
Comment on lines -36 to +47
- Setup Secrets by looking at the following templates and re-creating them:
- `git_key.template` -> `git_key`
- `IngestionGoogleKey.json.template` -> `IngestionGoogleKey.json`
- `TranslationGoogleKey.json.template` -> `TranslationGoogleKey.json`

**Set up secrets files**

```bash
cp secrets/git_key_template git_key
cp secrets/IngestionGoogleKey.json.template IngestionGoogleKey.json
cp TranslationGoogleKey.json.template TranslationGoogleKey.json
```
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you clarify that the person needs to read over the files and edit them as appropriate, not just copy them?

Comment thread docs/getting-started.md
Comment on lines +33 to +34
git clone git@github.com:nyc-cto/tms.git
cd tms
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Comment thread import_export/README.md
Comment on lines +47 to +72
Now that you have the Google Drive folder structure for translations, let's try running one.

In your Translations/en folder, create a new doc called "translation1".

In the doc, add this text:

```
Hello, world!
```

Next, head to your command line on your local workstation and enter your running Docker container (if you are using Docker to run the service):

```bash
(your-local-workstation) $ docker-compose exec serge bash
```

Once you are in the container, change to this directory:

```bash
(docker-container) $ cd /var/tms
```

And run this command:

```bash
(docker-container) $ sh run_ingest_sync_simple.sh
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea to add an example of running it

@matthewsilver
Copy link
Copy Markdown
Collaborator

@nellshamrell thanks for adding the examples and steps! I added some clarifying steps for the import/export setup as described in the email chain here: #67. @liquidsteves once this PR is merged in, I'll merge mine in after review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants