Welcome to FarmHub! FarmHub is an advanced platform designed to connect farmers and agriculture-related service providers. Our application allows users to offer and rent services, including farming materials and trackers, to help with agricultural needs. We also support individuals or companies looking to start agriculture-related businesses, providing resources and assistance for new ventures.
- Next.js: A React framework for building server-side rendered and statically generated web applications.
- Drizzle: An ORM for managing and interacting with your database.
- Shadcn: A library for building accessible and customizable components.
- Supabase: A powerful backend-as-a-service (BaaS) platform that provides authentication, real-time databases, and more.
- User Authentication: Secure user login and registration using Supabase.
- Service Listing: Users can list farming services and materials for rent.
- Service Management: Providers can manage their listings and extend rental periods.
- Responsive Design: Built with a responsive layout to ensure a seamless experience on all devices.
- Node.js (>= 16.x)
- Yarn (or npm)
- Docker (optional but recommended for setting up the development environment)
-
Clone the repository:
git clone https://github.com/your-username/farmhub.git cd farmhub
-
Install dependencies:
yarn install
Or with npm:
npm install
-
Set up environment variables:
Create a
.env.local
file in the root directory and add your environment variables. For Supabase, include your credentials:NEXT_PUBLIC_SUPABASE_URL=your-supabase-url NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key
-
Run the development server:
yarn dev
Or with npm:
npm run dev
Open http://localhost:3000 in your browser.
Ensure your Drizzle configuration is set up to connect with your database. You can find the configuration in the drizzle.config.ts
file.
link -https://dbdiagram.io/d/farmHub-database-desine-66ac599b8b4bb5230e058d6a
Deploy your application to Vercel or another hosting provider. For Vercel:
-
Push your code to GitHub:
git add . git commit -m "Initial commit" git push origin main
-
Connect your GitHub repository to Vercel and follow the prompts to deploy your application.
We welcome contributions to FarmHub! To get started:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and test them.
- Submit a pull request with a description of your changes.
This project is licensed under the MIT License. See the LICENSE file for more details.
For any questions or issues, please contact us at [email protected].
Thank you for using FarmHub! We hope it helps you manage and grow your agricultural ventures effectively.
Feel free to customize it further to match your specific needs and details.