@rivascva/dt-idl
v1.1.166
Published
Dream Trade - Interface Definition Language
Readme
Dream Trade Interface Description Language (IDL)
The API language for all Dream Trade microservices.
Setup
1. Install mise
- Install the
miseCLI
brew install mise- Add the
miseactivation command to your.zshrc
echo 'eval "$(mise activate zsh)"' >> ~/.zshrc- Reload your
.zshrcconfig (or restart your shell)
source ~/.zshrcNote: You can follow the official installation docs for other options
2. Install project dependencies
- Use
miseto install project dependencies
mise install3. Install pre-commit hooks
- Use the makefile
pre-commit-installcommand
make pre-commit-install4. Install go modules
- Use
goto install codebase modules
go mod tidy5. Install node modules
- Install all
nodemodules
npm installCommon Scripts
npm run lint- Lints all typescript filesnpm run check- Checks the syntax of all typescript filesnpm run gen- Generates typescript service clients
Deployments
Any merge to main with changes to the ts/* and go/* directory will trigger an automatic deployment to npm
Go Package
To import the Go packages in other repositories, you must follow the steps below to allow importing from a private repository.
1. Add an ssh override in your ~/.gitconfig
[url "[email protected]:"]
insteadOf = https://github.com/2. Add the following export within your ~/.zshrc
export GOPRIVATE=github.com/RivasCVA/*