@rivascva/dt-idl
v1.1.182
Published
Dream Trade - Interface Definition Language
Readme
Dream Trade Interface Description Language (IDL)
The API language for all Dream Trade microservices.
Setup Project
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 installSetup Database
1. Install Docker Desktop
- Follow the official Docker installation page
2. Configure Supabase
- Login to your Supabase account
supabase login- Link the Supabase project
supabase linkSelect the "DreamTrade" project when prompted
Common Scripts
npm run lint- Lints all typescript filesnpm run check- Checks the syntax of all typescript filesnpm run gen- Generates typescript service clientsmake db-start- Starts the local Supabase databasemake db-stop- Stops the local Supabase database
Deployments
- Any merge to
mainwith changes to thets/*andgo/*directory will trigger an automatic deployment tonpm - Any merge to
mainwith changes to thesupabase/*directory will trigger an automatic deployment to the remote database
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/*