Making healthcare accessible through technology 🏥💊
E-Pharmacy is a modern, full-stack web application that revolutionizes the way people access medications and pharmacy services. Built with cutting-edge technologies, it provides a seamless experience for browsing medicines, managing orders, and connecting with local pharmacies.
- Secure JWT-based login/registration
- Protected routes and persistent sessions
- Auto-logout on token expiration
- User profile management
- Discover Nearby Stores - Find pharmacies in your area
- Store Ratings & Reviews - Make informed decisions
- Real-time Status - Know which stores are open
- Contact Integration - Direct phone calls and map navigation
- Smart Search - Find medicines by name, category, or supplier
- Dynamic Filtering - Category-based filtering with real-time results
- Detailed Product Pages - Complete medicine information with reviews
- Stock Management - Real-time inventory tracking
- Real-time Updates - Instant cart synchronization
- Stock Validation - Prevent overselling with live inventory checks
- Smart Calculations - Automatic totals with delivery fees
- Persistent Cart - Your items saved across sessions
- Mobile-first approach
- Breakpoints:
- Mobile: 375px+
- Tablet: 768px+
- Desktop: 1440px+
- React 19.1.0 - Modern UI library with latest features
- Redux Toolkit - Efficient state management
- React Router DOM - Declarative routing
- Vite 6.3.5 - Lightning-fast build tool
- Formik + Yup - Form handling and validation
- Axios - HTTP client with interceptors
- CSS Modules - Component-scoped styling
- Node.js - Runtime environment
- Express - Web framework
- MongoDB + Mongoose - Database
- Bcrypt - Password hashing
- Joi - Server-side validation
- Node.js 18+
- npm or yarn
- MongoDB database
cd backend
npm install
cp .env.example .env
# Configure your environment variables in .env
npm run devcd frontend
npm install
npm run devPORT=3000
MONGODB_USER=your_mongodb_user
MONGODB_PASSWORD=your_mongodb_password
MONGODB_URL=your_mongodb_cluster_url
MONGODB_DB=e_pharmacy- HomePage - Landing page with store previews and reviews
- RegisterPage - User registration
- LoginPage - User authentication
- MedicineStorePage - Browse all pharmacies
- ProductPage - Detailed product information
- MedicinePage - Product catalog with filters
- CartPage - Shopping cart and checkout
- Font Family: Inter
- Headings: 600-700 weight
- Body: 400-500 weight
POST /api/user/register- Register new userPOST /api/user/login- User loginGET /api/user/logout- User logoutGET /api/user/user-info- Get user informationPOST /api/user/refresh- Refresh access token
GET /api/products- Get products with filtersGET /api/products/:id- Get single productGET /api/stores- Get all storesGET /api/stores/nearest- Get nearest stores
GET /api/cart- Get user cartPOST /api/cart/add- Add item to cartPUT /api/cart/update- Update cart itemDELETE /api/cart/remove- Remove cart itemPOST /api/cart/checkout- Place order
GET /api/customer-reviews- Get customer reviews
This project is licensed under the MIT License.
E-Pharmacy - Making healthcare accessible through technology 🏥💊