AGRINEXTGEN is a comprehensive e-commerce platform that allows users to browse and purchase a variety of products. The application supports user authentication, cart management, order processing, and payment handling.
- User Authentication: Users can register and log in to their accounts.
- Cart Management: Users can add products to their cart and view their cart items.
- Order Processing: Users can create and view their orders.
- Payment Handling: Users can make payments for their orders.
- Product Management: Sellers can create and manage their products.
- Frontend: Next.js, React
- Backend: Node.js, Express
- Database: Prisma, PostgreSQL
- Authentication: JWT, bcrypt
- Styling: Tailwind CSS, shadcn
- Clone the repository:
git clone https://github.com/DUSHIME1212/agrinextgen.git cd agrinextgen - Install dependencies:
npm install
- Set up the database:
- Create a PostgreSQL database and update the connection string in the
.envfile.
- Create a PostgreSQL database and update the connection string in the
To run the application in development mode, use the following command:
npm run devThe application will be available at http://localhost:3000.
Make sure to create a .env file in the root directory with the following variables:
use a postgres connection string on database url.
DATABASE_URL=""
JWT_SECRET=""
NEXT_PUBLIC_CLOUDINARY_UPLOAD_PRESET=""
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=""
CLOUDINARY_API_KEY=""
CLOUDINARY_API_SECRET=""
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License.