Skip to content

Commit

Permalink
Update prepare_environment.sh (#2665)
Browse files Browse the repository at this point in the history
- Updated command for npm install
- Added command to install datastore
  • Loading branch information
manishchaudhari-ssk authored Aug 29, 2024
1 parent 5e7fc23 commit 13ca761
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ echo "Making bucket: gs://$GCLOUD_BUCKET"
gsutil mb gs://$GCLOUD_BUCKET

echo "Installing dependencies"
npm install -g [email protected]
npm install
npm update

echo "Creating Datastore entities"
npm install @google-cloud/datastore
node setup/add_entities.js

echo "Creating Cloud Pub/Sub topic"
Expand All @@ -36,4 +37,4 @@ echo "Creating Cloud Spanner Instance, Database, and Table"
gcloud spanner instances create quiz-instance --config=regional-us-central1 --description="Quiz instance" --nodes=1
gcloud spanner databases create quiz-database --instance quiz-instance --ddl "CREATE TABLE Feedback ( feedbackId STRING(100) NOT NULL, email STRING(100), quiz STRING(20), feedback STRING(MAX), rating INT64, score FLOAT64, timestamp INT64 ) PRIMARY KEY (feedbackId);"

echo "Project ID: $DEVSHELL_PROJECT_ID"
echo "Project ID: $DEVSHELL_PROJECT_ID"

0 comments on commit 13ca761

Please sign in to comment.