Open chris-tbd opened 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
@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?
hermit isn't js specific. we use it in kotlin, go, and dart repos. it's language agnostic
@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?
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).
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:npm
is installed and installing it if it's not.Docker
is installed and running, and installing and starting it if it's not.dbmate
is installed globally and installing it if it's not.npm install
..env.example
to.env
.npm run server
.These changes help streamline the setup process, making it easier for new developers to get started with the project.