TBD54566975 / tbdex-pfi-exemplar

4 stars 8 forks source link

Create a setup script to enable better integration with other projects #33

Open chris-tbd opened 5 months ago

chris-tbd commented 5 months ago

This pull request includes changes to the setup.sh script to automate the setup process for the project. The script now checks for and installs necessary tools such as npm, Docker, and dbmate if they are not already installed. It also runs database setup scripts, installs project dependencies, copies the environment variable file, and starts the server.

Key changes in the setup.sh script include:

These changes help streamline the setup process, making it easier for new developers to get started with the project.

mistermoe commented 5 months ago

@chris-tbd i'd highly suggest using hermit. it's what we use in several other repos. check out any of the sdk repos for examples. tbdex-js or web5-js would probably be the most relevant

chris-tbd commented 5 months ago

@mistermoe perfect, I didn't know about that! Does hermit only work in JS-based repos? Ideally the point of this script is to enable it to be run via a Swift (iOS) or Kotlin (Gradle/Android) build system as part of testing the Wallet apps. Would Hermit still work for that?

mistermoe commented 5 months ago

hermit isn't js specific. we use it in kotlin, go, and dart repos. it's language agnostic

chris-tbd commented 5 months ago

@mistermoe I can't init a new hermit project - when I follow the getting started to run the init command it craps out and says it requires a filename. Any chance you'd be able to help unblock me here?

michaelneale commented 5 months ago

for this exemplar where docker is needed, I am not sure if hermit helps a lot on the common platforms where people are (ie you already have to install docker - which is the bulk of the dependency in this case).