All work / Personal
Pharmacy dashboard Nuxt and TypeScript admin for a pharmacy
The admin for a pharmacy app: products, orders, prescriptions, coupons, loyalty points and customer messages, on top of its own Laravel API.
What the admin covers
Moafa is a pharmacy app, and this is its admin, in Arabic. It manages the catalogue (products with brand, categories, stock, offers and expiry dates), orders, the prescriptions customers upload, coupons and their purchases, loyalty-point transfers and ratings. Each customer has a page with their orders, prescriptions, ratings and a message thread, and a prescription can be turned into an order from its own page.
How it is built
Nuxt 3 with Vuetify components, UnoCSS for styling and Pinia for state, with forms validated by VeeValidate and Yup. Every request goes through one small wrapper around Nuxt's $fetch that adds the bearer token and turns 400, 401, 424 and 500 responses into readable error messages, so no page has to handle errors its own way.
Sessions and access
A global route middleware loads the signed-in user before every page. Customers are sent away from the admin, unverified accounts go to verification, and an expired access token is renewed with the refresh token; only if that fails does the user land on the login page. The admin is marked noindex so it stays out of search results.