ProjectLibertyLabs / social-app-template

Social Application Template that uses Gateway Services
Apache License 2.0
1 stars 4 forks source link

Add testnet startup script and docker-compose-testnet.yaml file #96

Closed mattheworris closed 4 months ago

mattheworris commented 4 months ago

Purpose

The goal of this PR is to add a script that starts up SAT connected to the paseo testnet.

Closes #94 Closes #95

Solution

Steps to Verify

  1. Execute ./start-gateway.sh.
  2. Verify that all containers start correctly by examining Docker Desktop logs.
  3. Test SAT functionality.
  4. Execute ./stop-gateway.sh and verify that the containers are stopped and optionally volumes are deleted.
  5. Verify the contents of .env-saved

Notes

  1. Content-watcher is updated to have a 2-hour (600) block rewind. This allows SAT to sync up with the current end of the chain quickly. However, it means that any posts more than 2 hours old will not show up. [A separate issue is in the works to update content-watcher so that it can sync further back, and still monitor the end of the chain and new posts]
  2. Users will have to look up or know the Provider Id and Seed Phrase before running the startup script.
  3. npm install is not necessary for running on Testnet, but it is needed in the backend to run npm run local:init when running a local node, as specified in the README.md. npm install is done inside the container, and the Docker volume is mapped to the host system, but the host will not see the volume until npm install writes the files locally, and the host files should be in sync with the docker files.