- Node.js (recommended version 18+)
- npm
- Backend repository: aibtcdev-backend
git clone https://github.com/aibtcdev/aibtcdev-frontend.git
cd aibtcdev-frontend
Create a .env.local
file in the project root and add the following variables:
NEXT_PUBLIC_SUPABASE_URL=https://addyourown.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=add_your_anon_key
HIRO_API_KEY=hiro_api_key
NEXT_PUBLIC_API_URL=http://127.0.0.1:8000
NEXT_PUBLIC_STACKS_NETWORK=testnet
npm install
Install and configure Husky to ensure code quality before commits:
# Initialize husky
npx husky init
# Add a pre-commit hook to run Prettier on staged TypeScript files
echo 'npx prettier --write --list-different "**/*.{ts,tsx}"' > .husky/pre-commit
# Make the pre-commit hook executable
chmod +x .husky/pre-commit
This setup will automatically format your TypeScript and TSX files before each commit, ensuring consistent code formatting across the project.
Clone and set up the backend repository:
git clone https://github.com/aibtcdev/aibtcdev-backend.git
cd aibtcdev-backend
# Follow backend setup instructions
npm run dev