Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chris-tbd
Copy link
Contributor

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:

  • Checking if npm is installed and installing it if it's not.
  • Checking if Docker is installed and running, and installing and starting it if it's not.
  • Checking if dbmate is installed globally and installing it if it's not.
  • Running database setup scripts and migrations if necessary.
  • Installing project dependencies using npm install.
  • Copying the environment variable file from .env.example to .env.
  • Starting the server using npm run server.

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

@mistermoe
Copy link
Member

mistermoe commented Apr 19, 2024

@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
Copy link
Contributor Author

@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
Copy link
Member

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

@chris-tbd
Copy link
Contributor Author

@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
Copy link
Contributor

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants