Live Link: https://simple-pc-builder.vercel.app
This ReadMe provides an overview of the Simple PC Builder website project, its features, and instructions on how to run the project.
The PC Builder website is a web application built using Next.js, a React framework for server-side rendering and static site generation. The website allows users to browse and select PC components to build their own custom PC. It features a PC Builder tool where users can add selected PC components and create their desired configuration.
-
Navbar: The website's navigation bar includes a "PC Builder" button that redirects users to the PC Builder page. It also contains a "Categories" dropdown with various PC component categories.
-
Home Page: The home page displays at least six randomly selected Featured Products. Each featured product card shows essential details like image, product name, category, price, stock status, and rating. Clicking on a featured product takes the user to the product detail page.
-
Featured Category Sections: The home page also has six Featured Category Sections. Each section is clickable and redirects users to a page displaying at least three products of that specific category.
-
Product Detail Page: The product detail page displays in-depth information about a PC component, including image, product name, category, stock status, price, description, key features, individual rating, average rating, and user reviews.
-
PC Builder Page: The PC Builder page allows users to build their custom PC by selecting PC components. The page includes sections for CPU, motherboard, RAM, power supply unit, storage device, and monitor. Users can click on the "Choose/Select" button to view and add at least three components of each category. The added components are displayed below the respective sections. The "Complete Build" button becomes active when the user selects at least 5-6 components.
-
Protected Route: The PC Builder page is a protected/private route, accessible only to logged-in users. User authentication is implemented using NextAuth with at least one social login provider (Google/Github).
-
Success Alert: Clicking the "Complete Build" button displays a success alert, confirming the successful build of the custom PC.
-
Responsive Design: The entire application is responsive and optimized for both mobile and desktop devices.
Follow the steps below to run the PC Builder website project locally:
- Node.js and npm must be installed on your machine.
- Clone the repository:
git clone https://github.com/ctafsiras/simple-pc-builder
- Navigate to the project directory:
cd simple-pc-builder
- Install dependencies:
npm install
- Set up environment variables: Create a
.env
file in the root directory and define the required environment variables (e.g., API keys for social logins). - Run the development server:
npm run dev
- Open your web browser and visit
http://localhost:3000
to access the PC Builder website.
To deploy the project to a production server, follow the deployment guidelines for Next.js applications.
- The project includes unit tests and integration tests to ensure code quality and functionality.
- The website's hero section and footer are included for better user experience and navigation.
Contributions to the project are welcome. If you find any issues or have suggestions for improvements, feel free to submit a pull request or create an issue.
The PC Builder website project is licensed under the MIT License.
This concludes the ReadMe for the Simple PC Builder website project. Feel free to reach out if you have any questions or need further assistance. Happy coding! 🚀