# Digi-Shamba
## Overview
Digi-Shamba is a modern farm management web application designed to help farmers and administrators efficiently manage daily records, analytics, resources, and livestock. The platform features secure authentication, responsive design, and a resource hub for actionable loan information.
## Live Demo
Access the live application here:
digi-shamba.vercel.app
## Test Accounts
Use these credentials to test the application:
- **Admin Account**:
- Email: qq@gmail.com
- Password: admin123
- **Farmer Account**:
- Email: kenyapast@gmail.com
- Password: 123456
## Tech Stack
- **Frontend**: React with Vite, hosted on Vercel
- **Backend**: Node.js/Express, hosted on Render
- **Database**: MongoDB Atlas
- **Styling**: Tailwind CSS
## Features
- User authentication (farmer/admin)
- Dashboard for farm management
- Daily records and analytics
- Resource hub with loan information
- Add and manage farm animals
- Admin dashboard
- User profile management
- Responsive design
- SPA routing (compatible with Vercel/Netlify)
## Screenshots
Here are some screenshots of the application:
## Screenshots
Here are some screenshots of the application:
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
## Demo Video
Check out the demo video here for a walkthrough of the application.
## Setup & Installation
### Prerequisites
- Node.js (v16+ recommended)
- pnpm (or npm/yarn)
- Git
### 1. Clone the Repository
```sh
git clone
github.com
cd Digi-Shamba
```
### 2. Install Dependencies
#### Frontend
```sh
cd client
pnpm install
```
Or use `npm install` if you prefer npm.
#### Backend
```sh
cd ../server
pnpm install
```
Or use `npm install` if you prefer npm.
### 3. Environment Variables
#### Frontend (`client/.env`)
Create a `.env` file in the `client` folder:
```
VITE_API_URL=
```
Replace ` ` with the actual URL of your backend API.
#### Backend (`server/.env`)
Create a `.env` file in the `server` folder:
```
PORT=5000 …