Loading project...
Loading project...
Project
Overview
Features
User registration and authentication. Product browsing and product details. Shopping cart management. Checkout and order creation. Customer order history. Admin dashboard. Product creation, editing, and deletion. Product image uploads using Cloudinary. Role-based access control. Email verification. Server-side input validation. Rate limiting on selected operations.
Implementation
I built the application using Next.js and TypeScript. PostgreSQL stores information about users, products, shopping carts, and orders. Prisma is used to define database models and perform database operations. The authentication system manages user accounts and protected application areas, while role-based access control separates customer functionality from administrative operations. Cloudinary is used for product image storage, and server-side validation helps ensure that submitted data is processed correctly. The application also uses reusable frontend components to keep the storefront consistent across different pages.
Challenges
One of the main challenges was organising the relationships between products, users, shopping carts, and orders. I needed to ensure that the backend could manage these different types of information without creating unnecessary duplication. I used relational database models and Prisma to organise the data and connect the different parts of the application. Another challenge was separating customer and administrator permissions. I implemented role-based access control so that administrative operations are restricted to authorised users. Handling product images was another important part of the project, so I integrated Cloudinary to manage image uploads separately from the application database.
What I learned
This project helped me gain a better understanding of how full-stack applications are structured. I improved my knowledge of relational databases, authentication, protected routes, file uploads, and managing application data. It also taught me the importance of planning database relationships and keeping frontend and backend responsibilities clearly organised.