Internal document sharing system for FLYWHEEL.
Because this project adheres to the FLYWHEEL Standard, first of all, your machine needs following the setup sequence described in its README.
Then run:
bin/setup
At first, you need to install gcloud SDK and log in with a GCP account that has permissions on the associated project. When it comes to FLYWHEEL, it is flywheel-mouseion
project.
Then run yarn dev
to start local server:
yarn dev
Now open http://localhost:8080 in your browser.
This repository uses docsify as a document generator under the hood.
yarn docsify serve docs
Now open http://localhost:3000 in your browser.
Every push to master
branch will deploy a new version of this app. Deploys happen automatically.
./bin/resiter-service-account -o ORGNAME -p PROJECT REPONAME
this command will:
- Create a service account to
PROJECT
GCP project. - Add
roles/storage.Admin
role to the service account. - Create a secret key (
tmp/REPONAME.json
) to the service account and download it. - (macOS only) Copy Base64 encoded secret key to the clipboard.
- (macOS only) Open the secrets settings page of the specified GitHub repository.
If you are using macOS, paste the clipboard to the textarea and create a repository secret value. Otherwise, encode the created key file base64 tmp/REPONAME.json
as Base64 and register the value as a secret by yourself.
Note that this command expects gcloud SDK is installed, and you have enough permission to complete those actions.