rough steps are, git clone this repo to bring it down install Clasp Deploy from the AppScript UI to get a depliyment ID Then you can redeploy using this bash shell script I wrote called startup.sh that wraps the Clasp command line tool.
There are a couple of things to set in this file https://github.com/aburdenko/gen-ai-doc-demo/blob/main/vertexAI.js pertaining to Google Cloud such as project number and service account.