Getting Started with Bitcoin Drive
Bitcoin Drive is a decentralized file storage platform built on the BSV blockchain. This guide will help you set up your development environment and start contributing.
Prerequisites
- Node.js 18+ and npm
- Git for version control
- A code editor (VS Code recommended)
- Google OAuth credentials (for authentication)
- HandCash Developer Account (optional)
Installation
Clone the repository and install dependencies:
bash
git clone https://github.com/bitcoin-apps-suite/bitcoin-drive.git cd bitcoin-drive npm install
Environment Setup
Create a `.env.local` file in the root directory:
env
NEXTAUTH_URL=http://localhost:2030 NEXTAUTH_SECRET=your-secret-key GOOGLE_CLIENT_ID=your-google-client-id GOOGLE_CLIENT_SECRET=your-google-secret
Database Setup
Initialize the Prisma database:
bash
npx prisma generate npx prisma db push