Amazona is an e-commerce website built using Next.js, a popular React framework for server-side rendering. It allows users to browse through different products, add items to their cart, and securely checkout with payment integration. The site is designed with a clean and modern UI, making it easy to navigate and use for online shopping.
This code is the Next.js configuration file (next.config.js). It enables strict mode for React and configures the domains for image rendering, specifically allowing images from'res.cloudinary.com'.
The code in utils/data.js exports an object called "data" that contains two arrays: "users" and "products". The "users" array stores user data such as name, email, hashed password, and isAdmin status. The "products" array stores product data including name, category, image, price, brand, rating, numReviews, countInStock, description, isFeatured status, and banner image. This code provides a pre-defined set of data that can be used in the application.
Contributions are always welcome! Please follow these steps:
Fork the project repository. This creates a copy of the project on your account that you can modify without affecting the original project.
Clone the forked repository to your local machine using a Git client like Git or GitHub Desktop.
Create a new branch with a descriptive name (e.g., new-feature-branch or bugfix-issue-123).
git checkout -b new-feature-branch
Make changes to the project's codebase.
Commit your changes to your local branch with a clear commit message that explains the changes you've made.
git commit -m 'Implemented new feature.'
Push your changes to your forked repository on GitHub using the following command
git push origin new-feature-branch
Create a new pull request to the original project repository. In the pull request, describe the changes you've made and why they're necessary.
The project maintainers will review your changes and provide feedback or merge them into the main branch.
๐ License
This project is licensed under the โน๏ธ LICENSE-TYPE License. See the LICENSE-Type file for additional info.
๐ Acknowledgments
- โน๏ธ List any resources, contributors, inspiration, etc.