A modern, full-stack pharmacy management system built with React and Node.js that helps pharmacies streamline their operations, manage inventory, and provide better patient care.
Live Link: https://pharmacyserver.vercel.app
- Inventory Management
- Sales Management
- Purchase Management
- Customer Management
- Supplier Management
- Reports & Analytics
- User Management
- System Settings
- Node.js
- Express.js
- MongoDB
- JWT Authentication
- Bcrypt
- CORS
- Clone the repository
git clone https://github.com/younusFoysal/Pharma-Care-Server.git
cd Pharma-Care-Server
- Install dependencies
cd server
npm install
- Environment Setup
Create .env
file in the root directory:
MONGODB_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secret_key
PORT=3000
- Start the Development Server
# Start backend server
npm run server
The server will be available at http://localhost:3000
- POST
/api/auth/login
- User login - POST
/api/auth/register
- User registration - GET
/api/auth/me
- Get current user
- GET
/api/products
- Get all products - POST
/api/products
- Create product - PUT
/api/products/:id
- Update product - DELETE
/api/products/:id
- Delete product
- GET
/api/sales
- Get all sales - POST
/api/sales
- Create sale - PUT
/api/sales/:id
- Update sale - GET
/api/sales/customer/:id
- Get customer sales
- GET
/api/purchases
- Get all purchases - POST
/api/purchases
- Create purchase - PUT
/api/purchases/:id
- Update purchase - DELETE
/api/purchases/:id
- Delete purchase
- GET
/api/customers
- Get all customers - POST
/api/customers
- Create customer - PUT
/api/customers/:id
- Update customer - DELETE
/api/customers/:id
- Delete customer
- GET
/api/suppliers
- Get all suppliers - POST
/api/suppliers
- Create supplier - PUT
/api/suppliers/:id
- Update supplier - DELETE
/api/suppliers/:id
- Delete supplier
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For support, email support@pharmacare.com or join our Slack channel.