npm run dev
[https://github.com/QuaziSamiha/Caffeine_Cozy.git]
[http://localhost:3000] with your browser to see the result.
email: [email protected] password: 123456
email: [email protected] password: 123456
if you want to sign up as an admin, then you have to go SignUp Component and have to change 36 & 37 no line
-
Tailwind CSS
-
Daisy UI
-
Authentication System: Developed a Sign Up page within the Next JS application. Implemented authentication by using 'Firebase' logic and without utilizing a backend API. Authentication data managed through context API. Created separate authentication credentials for users and administrators.
- go to context folder within app folder
- Dashboard Layout: Upon successful login, users and administrators will be directed to a dashboard. The dashboard layout has a sidebar positioned on the left and a navigation bar at the top.
- go to Dashboard folder within app folder
- Sidebar Navigation: User Access: Users only have access to the "Product" and "Profile" sections within the sidebar. Admin Access: Administrators have access to the "Product," "Add Coffee," "Profile," and "Users List" sections within the sidebar. Admin can add new product item.
- go to app --> component --> Sidebar folder
- Product Page Design: implemented a product page displaying product cards. Each product card included an image container, product name, description, and price. also included 'Details' button and based on user role 'Delete' & 'Update' button added
- go to app --> Dashboard --> Product
- go to app --> Dashboard --> Product --> ProductCard
- Dynamic Product Viewing: Developed a dynamic product view page. Upon clicking on a product card, users will be directed to a dynamic page displaying detailed information about the selected product.
- go to app --> Dashboard --> Product --> ProductDetails --> [id]
- Admin Product Management: Within the admin section, replicated the product page designed for users. Additionally, included delete, and update products button there.
- go to app --> Dashboard --> Product
- go to app --> Dashboard --> Product --> ProductCard
- Navbar Integration: Implemented a logout button within the navbar.
- go to app --> component --> Navbar
- Responsiveness: The application is responsive across various devices and screen sizes.