Aphiaa is a pharmacy management system designed to streamline inventory management, sales tracking, and user roles management in a pharmacy setting. The system aims to simplify daily operations, reduce errors, and improve efficiency. It allows admins to manage users, track sales, and manage stock, while providing an intuitive interface for pharmacy staff and clinicians.
- 🔐 Secure authentication with NextAuth.js
- 🗄️ MySQL database integration with Prisma ORM
- 📱 Responsive design with modern UI components
- 👥 User management and role-based access control
- 🚀 High performance and SEO optimization
- Frontend: React, Next.js, TypeScript, Tailwind CSS
- Backend: Node.js, Next.js API routes
- Database: MySQL (via Prisma ORM)
- Authentication: NextAuth.js
- State Management: Redux and Context API
- Deployment: Azure / Vercel / Netlify
- Node.js (preferably LTS version)
- Yarn (preferred, or npm)
- MySQL database (local or cloud setup)
- Git
-
Clone the Repository:
git clone https://github.com/theb0imanuu/aphiaa.git cd aphiaa -
Install Dependencies:
Using Yarn (preferred):
yarn install
Alternatively, using npm:
npm install
-
Set Up Environment Variables:
Create a
.env.localfile in the root directory and add your environment variables:NEXTAUTH_SECRET=your-secret-key DATABASE_URL="your_db" # Preferably postgreSQL
-
Run the Development Server:
For development:
yarn dev # or npm run devNavigate to
http://localhost:3000in your browser to access the application. -
Migrate Database:
Run database migrations to set up the necessary tables:
yarn prisma migrate dev # or npm run prisma migrate dev -
Seed the Database (Optional):
If you want to populate the database with initial data:
yarn prisma db seed # or npm run prisma db seed
aphiaa/
├── app/
│ ├── (auth)/
│ ├── admin/
│ ├── users/
│ ├── globals.css
│ └── layout.tsx
├── components/
│ ├── Sidebar.tsx
├── prisma/
│ ├── schema.prisma
│ └── seed.ts
├── pages/
│ ├── api/
│ ├── auth/
├── package.json
└── .gitignore- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the MIT file for details.