backend

module
v0.0.0-...-9107137 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2022 License: Apache-2.0

README

Backend

This directory contains the backend.

Right now the backend is just a static server for the front end.

Developer Guide

Test Data

Google Documents can be downloaded using the CLI and saved to create data to be used in tests; e.g.

./build/bin/server getdoc \
    --credentials-file=${CREDENTIALS_FILE} \
    --doc=${GOOGLE_DOC_ID} \
    --format=text \
    -o ${PATH_TO_SAVE_FILE}

The output of the Google Cloud Natural Language API can be downloaded as follows:

./build/bin/server getentities \
    --input ${INPUT_TEXT_FILE} \
    -o ${PATH_TO_SAVE_OUTPUT}

The input text file should be a string of linear text. This can be obtained from a Google Document using the previous command.

Directories

Path Synopsis
pkg
datastore
Package datastore provides the datastore to keep track of all the information needed.
Package datastore provides the datastore to keep track of all the information needed.
gcp/auth
Code originally based on https://github.com/kubeflow/internal-acls/blob/master/google_groups/cmd/main.go#L129
Code originally based on https://github.com/kubeflow/internal-acls/blob/master/google_groups/cmd/main.go#L129
glanguage
Package glanguage contains some utilities for working with Google's Natural Language API.
Package glanguage contains some utilities for working with Google's Natural Language API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL