The frontend of the Medicine E-Commerce Platform is developed using TypeScript and Next.js, with Tailwind CSS for styling. It includes user authentication, product management, a dynamic category system, and a responsive design. The platform integrates with a backend API for data handling and supports JWT-based authentication.
- Programming Language: TypeScript
- Web Framework: Next.js
- Styling: Tailwind CSS
- State Management: Redux, RTK Query, Axios
- Notification: React Hot Toast
- Modal: React Portal
- User Authentication (Registration, Login, JWT)
- Product Pages with dynamic categories
- Shopping Cart with Add-to-Cart functionality
- Product Variant Selection and Price Update
- Checkout Process with state management
- Admin Dashboard for managing users, products, and orders
- Responsive Design for seamless user experience
- SEO optimization using Next.js features
- Error handling and performance optimization
- Integration with backend services for CRUD operations
- Node.js (v14 or higher)
-
Clone the repository:
git clone https://github.com/ibnabdullah1/E-Pharmify-Client
-
Install dependencies:
npm install
-
Setup Environment Variables:
Create a
.env.local
file in the root directory and add the following environment variables:VITE_API_URL = http://localhost:4000/api/v1 VITE_IMGBB_API_KEY = your_api_key
-
Start the Development Server:
npm run dev
The application will be available at
http://localhost:3000
.
To run tests for the frontend, use:
npm test
For deployment, you can use platforms like Vercel. Ensure that your environment variables are configured properly in the deployment platform.