Skip to content

Deployment

Juan Gabriel Griggio edited this page May 30, 2024 · 5 revisions

To deploy Topic Mine, follow these simple steps

  1. Clone the repository to your local machine (if you haven't already)
    1. For that, you need to have Git installed in your machine and run the following command in a terminal:
    git clone https://github.com/google-marketing-solutions/topic-mine
  2. Set up config.json file (if you haven't already)
  3. Run the deploy.sh script:
    1. Open a terminal
    2. Navigate using the cd command to the root folder of the project.
    3. Check that you are in the right folder with the command ls. It should show a list of files and directories, and one of them should be deploy.sh
    4. Grant execution permission to the script with the following command:
    chmod +x your_script.sh
    1. Run the deploy script with the following command:
    ./deploy.sh
  4. Share the spreadsheet(s) that are going to be used with the newly-created service account with edit permission. That service account is the one specified in the config.json file, and its full address can be retrieved from Google Cloud Platform -> IAM & Admin - > Service Accounts