Skip to content

hBulldozer/dozer

Repository files navigation

Dozer Finance Monorepo

Important Dependencies

Exercise caution when updating:

  • heroicons
  • next
  • superjson
  • framer-motion
  • tanstack/react-query

These updates could introduce breaking changes.


Introduction

This repository is a Turbo monorepo to build Interfaces for users to interact with Dozer Finance Smart Contracts hosted at Hathor Network.

It is built with T3 Stack primitives using TypeScript, Prisma, trpc v10 and Tailwind Css.

Development Enviroment

Requirements

  • Node > 16
  • Pnpm > 8

We recommend instaling node via nvm: https://github.com/nvm-sh/nvm?tab=readme-ov-file#install--update-script

Pnpm installation: https://pnpm.io/installation

Database Connection

Vercel Storage doesn't need any installation on the developer machine to run. It generates an URL with user and password to direct access the postgres server from Neon.

The steps are:

  1. Create an .env file in packages/database folder
  2. Define two variables: POSTGRES_PRISMA_URL and POSTGRES_URL_NON_POOLING
  3. As the value for this variables are sensitive content, ask the Team for the right values to be inserted.

Setup and Execution**

  1. Install dependencies:

    • Open a command prompt or PowerShell in the project directory.
    • Run: pnpm install
  2. Configure environment:

    • Copy .env.example to .env.
    • Edit .env and provide the necessary values.
  3. Generate Prisma schema:

    • Run: pnpm generate
  4. Start development server:

    • Run: pnpm run dev

Let's get started!