{"id":16325774,"url":"https://github.com/siegfriedbz/nextjs-carhub","last_synced_at":"2025-07-04T07:33:59.769Z","repository":{"id":206982152,"uuid":"718146382","full_name":"SiegfriedBz/Nextjs-CarHub","owner":"SiegfriedBz","description":"🏎️ Next.js 14 app (App Router) for discovering and renting cars, featuring Google authentication, car exploration, rental booking, and secure Stripe payments. TypeScript, Tailwind CSS with dark theme support, and Prisma ORM with PostgreSQL backend.","archived":false,"fork":false,"pushed_at":"2024-07-05T12:15:28.000Z","size":4190,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T05:06:35.051Z","etag":null,"topics":["app-router-nextjs","brevo-api","dark-theme","framer-motion","google-authentication","headlessui-react","next-auth","nextjs","postgresql","prisma","react-suspense","stripe-api","tailwindcss","typescript","zustand","zustand-persist"],"latest_commit_sha":null,"homepage":"https://car-hub-jade-two.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SiegfriedBz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-13T13:33:52.000Z","updated_at":"2025-03-19T00:01:50.000Z","dependencies_parsed_at":"2024-06-21T22:14:20.282Z","dependency_job_id":"0982679d-e563-41b8-bd24-17aea9559c82","html_url":"https://github.com/SiegfriedBz/Nextjs-CarHub","commit_stats":null,"previous_names":["siegfriedbz/next_app__cars","siegfriedbz/nextjs-carhub"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SiegfriedBz/Nextjs-CarHub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiegfriedBz%2FNextjs-CarHub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiegfriedBz%2FNextjs-CarHub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiegfriedBz%2FNextjs-CarHub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiegfriedBz%2FNextjs-CarHub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SiegfriedBz","download_url":"https://codeload.github.com/SiegfriedBz/Nextjs-CarHub/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiegfriedBz%2FNextjs-CarHub/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263468981,"owners_count":23471424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["app-router-nextjs","brevo-api","dark-theme","framer-motion","google-authentication","headlessui-react","next-auth","nextjs","postgresql","prisma","react-suspense","stripe-api","tailwindcss","typescript","zustand","zustand-persist"],"created_at":"2024-10-10T23:06:20.229Z","updated_at":"2025-07-04T07:33:59.746Z","avatar_url":"https://github.com/SiegfriedBz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CarHub\n\nCarHub is a Next.js 14 (App Router) application for discovering and renting cars.  \nUsers can authenticate using Google, explore car listings, book rentals, and securely process payments through Stripe.  \nThe project is written in TypeScript with a responsive design powered by Tailwind CSS and a dark theme.  \nThe backend utilizes Prisma as the ORM with a PostgreSQL database.\n\n# Table of Contents\n- [Prerequisites](#prerequisites)\n- [Installation](#installation)\n- [Set up Prisma](#set-up-prisma)\n- [Running the Development Server](#running-the-development-server)\n- [Building for Production](#building-for-production)\n- [Running the Production Server](#running-the-production-server)\n- [Technologies Used](#technologies-used)\n- [Live Demo](#live-demo) 🚀\n\n# Prerequisites\nBefore you begin, ensure you have the following installed and set up:\n\n- **Node.js**: Install Node.js on your machine.\n- **PostgreSQL Database**: Set up a PostgreSQL database provider (e.g., [Aiven](https://aiven.io/)).\n- **Stripe Account**: Create an account on Stripe for payment processing.\n- **Brevo Email Account**: Sign up for Brevo to send booking confirmation emails.\n- **RapidAPI Cars API Account**: Obtain an API key from [RapidAPI Cars API](https://api-ninjas.com/api/cars) for car data.\n- **IMAGIN.studio API Account**: Register with [IMAGIN.studio API](https://www.imaginstudio.com/solutions/api) for car images (Note: Free tier availability may vary).\n\n\n# Installation\n\n1. Clone the repository:\n```bash\ngit clone git@github.com:SiegfriedBz/next_app__cars.git\ncd next_app__cars\n```\n\n2. Install dependencies:\n```bash\nnpm install\n```\n\n3. Set up environment variables:\n\nCreate a .env file in the root directory and add the following environment variables\n\n```env\n# NextAuth Configuration\nNEXT_PUBLIC_NEXTAUTH_URL=\nNEXTAUTH_SECRET=\nGOOGLE_CLIENT_ID=\nGOOGLE_SECRET_ID=\n\n# Social Links\nNEXT_PUBLIC_LINKEDIN_URL=\nNEXT_PUBLIC_GITHUB_URL=\n\n# RapidAPI Configuration\nNEXT_PUBLIC_RAPID_API_KEY=\nNEXT_PUBLIC_RAPID_API_HOST=\n\n# IMAGIN.studio Configuration\nNEXT_PUBLIC_IMAGIN_STUDIO_API_KEY=\n\n# Prisma Configuration\nDATABASE_URL=\n\n# Stripe Configuration\nNEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=\nSTRIPE_SECRET_KEY=\n\n# Admin Contact Email\nNEXT_PUBLIC_MAIL_CONTACT=\n\n# Brevo Email Configuration\nNEXT_PUBLIC_BREVO_SENDER_NAME=\"Car Hub\"\nNEXT_PUBLIC_BREVO_SENDER_EMAIL=\nNEXT_PUBLIC_BREVO_API_KEY=\n\n```\n\n# Set up Prisma\n\nInitialize Prisma:\n```bash\nnpx prisma init\n```\n\nGenerate Prisma Client:\n```bash\nnpx prisma generate\n```\n       \n# Running the Development Server\nTo start the development server, run:\n\n```bash\nnpm run dev\n  ```\n\n# Building for Production\nTo build the project for production, run:\n\n```bash\nnpm run build\n```\n\n# Running the Production Server\nAfter building the project, you can start the production server with:\n\n```bash\nnpm start\n```\n\n# Technologies Used\n\n- **Framework**: React, Next.js 14 (App Router)\n- **TypeScript**: Provides type safety and improved development experience.\n\n## Frontend:\n- **Styling**: Tailwind CSS (responsive design with dark theme support)\n  \n## Backend:\n- **ORM**: Prisma\n- **DB**: PostgreSQL\n- **Authentication**: NextAuth.js with Google Provider\n\n## Payment Processing:\n- **Stripe**\n\n## Live Demo\nVisit the live demo of [CarHub](https://car-hub-jade-two.vercel.app/) deployed on Vercel  \nPostgreSQL DB hosted on [aiven.io](https://aiven.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiegfriedbz%2Fnextjs-carhub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiegfriedbz%2Fnextjs-carhub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiegfriedbz%2Fnextjs-carhub/lists"}