๐Ÿš€ NetVet Protocol

Quick Start Guide

๐Ÿš€ Quick Setup

๐Ÿ“‹ Prerequisites

1

Node.js 18+

Required for frontend development and smart contract tools

2

Go 1.21+

Backend API server development

3

Docker & Docker Compose

Containerization and development environment

4

Git

Version control and repository management

โšก Option 1: Automated Setup (Recommended)

# Make setup script executable (Linux/macOS)
chmod +x setup.sh
./setup.sh

# Or run manually on Windows
bash setup.sh

๐Ÿ”ง Option 2: Manual Setup

# 1. Install dependencies
make install

# 2. Copy environment configuration
cp .env.example .env
# Edit .env file with your settings

# 3. Start development services
make dev

๐Ÿƒโ€โ™‚๏ธ Running the Application

๐Ÿณ Option A: Using Docker (Easiest)

โœ… Recommended for beginners

This method automatically handles all dependencies and services

# Start all services
make docker-up

# Access the applications:
# - Frontend: http://localhost:3000
# - Backend API: http://localhost:8080
# - Local Blockchain: http://localhost:8545

โš™๏ธ Option B: Individual Services

โš ๏ธ Advanced users only

Requires multiple terminal windows and manual dependency management

# Terminal 1: Start database services
docker-compose up -d postgres redis

# Terminal 2: Smart contracts (local blockchain)
cd contracts
npm run node

# Terminal 3: Backend API
cd backend
go run cmd/server/main.go

# Terminal 4: Frontend DApp
cd frontend
npm run dev

๐Ÿ”ง Essential Commands

๐Ÿ—๏ธ Build Everything

make build

๐Ÿงช Run Tests

make test

๐Ÿงน Clean Build Artifacts

make clean

๐Ÿ›‘ Stop All Services

make docker-down

๐Ÿ“ Project Structure

NetVet/ โ”œโ”€โ”€ contracts/ # Smart contracts (Solidity/Hardhat) โ”œโ”€โ”€ frontend/ # React DApp โ”œโ”€โ”€ backend/ # Go API server โ”œโ”€โ”€ docs/ # Documentation โ”œโ”€โ”€ .github/workflows/ # CI/CD pipelines โ”œโ”€โ”€ docker-compose.yml # Development environment โ”œโ”€โ”€ Makefile # Build automation โ””โ”€โ”€ README.md # Project overview

๐ŸŒ Default URLs

Frontend DApp
React application with wallet integration
Backend API
Go server with REST endpoints
API Documentation
Interactive API documentation
Local Blockchain
Hardhat local development network

๐Ÿ”‘ Environment Configuration

๐Ÿ”ง Key environment variables (update .env file):
# Blockchain
ETHEREUM_RPC_URL=https://mainnet.infura.io/v3/YOUR_PROJECT_ID
SEPOLIA_RPC_URL=https://sepolia.infura.io/v3/YOUR_PROJECT_ID
PRIVATE_KEY=your-deployer-private-key

# Security
JWT_SECRET=your-secure-jwt-secret

# Database
DATABASE_URL=postgresql://user:password@localhost:5432/netvet

# API Configuration
API_PORT=8080
API_HOST=localhost

๐Ÿงช Testing

๐Ÿ” Run All Tests

make test

๐Ÿ“œ Smart Contract Tests

cd contracts && npm run test

โš›๏ธ Frontend Tests

cd frontend && npm run test

๐Ÿน Backend Tests

cd backend && go test ./...

๐Ÿ“ฆ Deployment

See DEPLOYMENT_GUIDE.md for detailed deployment instructions.

๐Ÿš€ Deploy Smart Contracts

cd contracts && npm run deploy

๐Ÿ—๏ธ Build for Production

make build-prod

๐Ÿณ Docker Deployment

docker-compose -f docker-compose.prod.yml up -d

โ˜๏ธ Cloud Deployment

./deploy.sh production

๐Ÿ†˜ Troubleshooting

๐Ÿ”ง Common Issues

๐Ÿค Getting Help

๐Ÿ“š Documentation

Check the docs/ directory for detailed documentation

๐Ÿ› GitHub Issues

Create an issue on GitHub if you encounter bugs

๐Ÿ’ฌ Community Discord

Join our community Discord for real-time support

๐Ÿ“ง Contact Support

Email support@netvet.xyz for technical assistance

๐ŸŽฏ Next Steps

1

Configure Environment

Update .env with your specific configuration

2

Deploy Smart Contracts

Run cd contracts && npm run deploy

3

Explore the Codebase

Familiarize yourself with the project structure

4

Read Documentation

Check the full documentation in docs/

5

Start Building

Begin developing your veterinary DApp!

6

Join the Community

Connect with other developers and get support

๐ŸŽ‰ Happy coding!

You're now ready to build amazing DeFi security solutions with NetVet Protocol