Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettwong committed Sep 24, 2019
1 parent b59a293 commit 959541b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions forseti-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,26 @@ export FORSETI_SERVER_VM_CHANNEL="[VM_IP]:[GRPC_PORT]"
export FORSETI_DATA_MODEL_HANDLE="[DATA_MODEL_HANDLE_HASH:21254f1de747879237a95cb552e80844]"
EOF

# create auth config.json for authenticating
# refer to instructions on setting up project authentication
cat > server/config.json << EOF
{
"host": "0.0.0.0",
"port": 8080,
"bodyLimit": "100kb",
"corsHeaders": ["Link"],
"GCLOUD_PROJECT": "[PROJECT_ID]",
"DATA_BACKEND": "datastore",
"NODE_ENV": "",
"OAUTH2_CLIENT_ID": "[SERVICE_ACCOUNT_NAME]@apps.googleusercontent.com",
"OAUTH2_CLIENT_SECRET": "[CLIENT_SECRET]",
"OAUTH2_CALLBACK": "http://localhost:8080/auth/google/callback",
"SECRET": "[SECRET]"
}
EOF


npm install
source source.env
# the forseti-api server runs on localhost port 8080
Expand Down

0 comments on commit 959541b

Please sign in to comment.