Digi Fasal is a comprehensive agricultural marketplace platform connecting farmers, buyers, and service providers with a focus on crop listings and commerce functionality.
- User Roles: Support for farmers, buyers, and service providers
- Product Marketplace: Browse and search agricultural products by category
- Service Listings: Access transportation, equipment rentals, and advisory services
- User Authentication: Secure login and registration system
- Responsive Design: Mobile-first approach for all devices
- Frontend: React, TailwindCSS, Shadcn UI components
- Backend: Express.js, Node.js
- Database: PostgreSQL with Drizzle ORM
- Authentication: JWT-based auth system
- API: RESTful API architecture
- Node.js (v18 or later)
- PostgreSQL database
Option 1: Download ZIP
- In Replit, go to the three-dot menu (...) in the top-left corner
- Select "Download as zip"
- Extract the downloaded ZIP file to your preferred location
Option 2: Clone via Git
- Go to the Replit project page
- Copy the Git URL from the Project info panel
- Clone using:
git clone [URL]
Navigate to the project folder and run:
npm install- Create a PostgreSQL database
- Configure environment variables:
Create a .env file in the root directory with the following:
DATABASE_URL=postgresql://username:password@localhost:5432/your_database_name
- Run database migrations:
npm run db:pushTo populate your database with sample data:
- Start the server
- Make a POST request to
/api/seedendpoint:
curl -X POST http://localhost:5000/api/seednpm run devThe application will be available at http://localhost:5000
/client: Frontend React application/src: Source files/components: UI components/pages: Page components/hooks: Custom React hooks/lib: Utility functions/types: TypeScript type definitions
/server: Backend Express serverroutes.ts: API endpointsstorage.ts: Data access layerdb.ts: Database connection
/shared: Common code between frontend and backendschema.ts: Data models and schemas
For production deployment:
- Build the frontend:
npm run build- Start the production server:
npm start