Follow these steps to set up a local development environment for KisanAI. Do not share secrets publicly.
- Node.js 18+ and npm 9+
- Optional: MongoDB local instance for full feature testing
- Clone the repository
git clone https://github.com/asheesh109/KisanAI.git
cd KisanAI- Copy environment variables
cp .env.example .env.local
# Fill in MONGODB_URI, NEXT_PUBLIC_... keys as needed- Install dependencies (locally)
npm install- Run the app
npm run devNotes:
- Developers should keep credentials in
.env.localand never commit them. - For AI provider keys, put them in environment variables and opt-in when testing.
This file explains how contributors can run the project locally. Follow these steps on your machine.
- Prerequisites
- Node.js (LTS)
- npm or yarn
- Optional: VS Code with recommended extensions
- Steps
- Clone the repository
- Copy
.env.exampleto.env.localand fill values - Install dependencies (
npm ciornpm install) - Run development server (
npm run dev)
Testing
- Run tests:
npm test - Lint:
npm run lint - Type-check:
npm run type-check
Notes
- No credentials are committed. Use environment variables for any API keys.