ChainCare is a DeFi platform that enables sustainable impact investing through yield-generating vaults on the Base network.
- Non-custodial yield-generating vaults
- Impact tracking and achievements
- Social sharing capabilities
- Real-time APY monitoring
- Frontend: React, TypeScript, Tailwind CSS
- Backend: Node.js, PostgreSQL
- Blockchain: Ethers.js, Dynamic SDK
- Network: Base
# Database
DATABASE_URL=postgresql://user:password@localhost:5432/chaincare
# Dynamic.xyz Authentication
VITE_DYNAMIC_ENVIRONMENT_ID=your_dynamic_environment_id
- Clone the repository
- Install dependencies:
npm install
- Set up environment variables in
.env
:
# Database
DATABASE_URL=postgresql://user:password@localhost:5432/chaincare
# Dynamic.xyz Authentication
VITE_DYNAMIC_ENVIRONMENT_ID=your_dynamic_environment_id
- Set up PostgreSQL database:
# Create database tables
npm run db:push
- Start the development server:
npm run dev
The project uses PostgreSQL with Drizzle ORM. To set up your database:
- Create a PostgreSQL database
- Update DATABASE_URL in your
.env
file - Run
npm run db:push
to create the database schema - The schema includes tables for:
- Users & Authentication
- Vault deposits
- Projects & Distributions
- Rewards & Achievements
GNU Affero General Public License v3.0