groton-school / knowledgebase

Knowledgebase website
https://kb.groton.org
GNU General Public License v3.0
0 stars 0 forks source link
google-app-engine google-cloud-storage google-drive overdrive

@groton/knowledgebase

Knowledgebase website

While written specifically to facilitate our school knowledgebase, this is a monorepo that contains three separate apps that (can, theoretically) all operate independently of each other:

Dependencies

Install

  1. Clone this repo:
git clone git@github.com:groton-school/knowledgebase.git path/to/repo
  1. Install dependencies:
cd path/to/repo
pnpm i -r
  1. Create a new Google Cloud Project -- make a note of the project ID (e.g. egregious-juniper-123456 or similar). While the setup script (below) can create a new project for you, it cannot configure OAuth consent...
  2. Configure OAuth Consent for that project
  3. Run the setup script, answering questions reasonably (starting with the project ID):
cd path/to/repo
npx tsx bin/setup.ts

Configure

There are a number of places where configuration can be performed. Refer to the individual apps for for more information.

Deploy & Sync

The site is initially synced and deployed for the first time as part of the installation process in the setup script.

To resync changes from the Google Drive folder to the site:

cd path/to/repo
pnpm run sync