Check out the site at https://techrepair-experts.onrender.com/
Check out the live site at https://techrepair-experts.onrender.com/
This project consists of four main components:
- Repair Cost Estimator: A tool for estimating repair costs based on device type, model, and the issue.
- YouTube Video Showcase: A page that displays a gallery of YouTube videos from a specific channel, along with video details.
- Additional Pages:
- Contact: Allows users to get in touch.
- About Us: Provides information about the company or project.
- Services: Details the services offered.
- Gallery: A blog-like page showcasing images and articles
- Multi-Step Form: Users can choose the device type, model, and the issue they are facing. The cost is fetched from a PostgreSQL database using Prisma.
- Progress Bar: Visually represents the user’s progress through the form.
- Animations: Smooth transitions between steps enhance user experience.
- Dynamic Cost Calculation: Real-time cost fetching from the backend based on user input.
- YouTube API Integration: Fetches videos from a specific YouTube channel.
- Pagination: Displays videos in a paginated format.
- Video Details: Clicking on a video shows more details such as the description and duration, and plays the video in an embedded player.
- Search Functionality: Users can search videos by title.
- Responsive Layout: Videos are displayed in a neat 3x4 grid layout on larger screens and adapt to mobile devices.
- Contact Form: Allows users to send messages or inquiries.
- Map Integration: Displays the company’s location via an embedded map.
- Company Information: Provides details about the mission, vision, and team members.
- Timeline: Showcases the project's or company's milestones.
- Service Listings: Details of the services offered, including descriptions and pricing.
- Service Categories: Organizes services into categories for easier navigation.
- Blog-like Posts: Displays images and articles related to tech repairs.
- Image Slider: Showcases featured images with descriptions.
- Frontend:
- React.js
- Bootstrap
- FontAwesome
- Animate.css
- Backend:
- Express.js
- Prisma
- PostgreSQL Database
- APIs:
- YouTube API: To fetch video details and data.
- Node.js installed on your machine.
- PostgreSQL installed and running locally or on a cloud database provider.
- YouTube API Key from the Google Developer Console.
-
Clone the Repository:
git clone https://github.com/your-username/your-repo.git cd your-repo -
Install Dependencies for Both Client and Server:
# Install client dependencies cd client npm install # Install server dependencies cd ../server npm install
-
Configure PostgreSQL and Set Up Prisma:
-
Initialize Prisma:
npx prisma init
-
Set Up Your Prisma Schema:
Edit the
prisma/schema.prismafile to define your data models. Ensure it includes models for the Repair Cost Estimator and any other necessary components. -
Run Prisma Migrations:
npx prisma migrate dev --name init
-
Seed the Database with Repair Cost Data (If Applicable):
npx prisma db seed
-
-
Run the Server:
cd server npm start -
Run the Client:
cd client npm start -
Access the Frontend App:
Open your browser and navigate to http://localhost:3000.