π Table of Contents
- π€ Introduction
- βοΈ Tech Stack
- π Features
- π€Έ Quick Start
- πΈοΈ Snippets (Codes)
- π Assets
- π More
A cutting-edge AI SaaS platform that enables users to create, discover, and enjoy podcasts with advanced features like text-to-audio conversion with multi-voice AI, podcast thumbnail Image generation and seamless playback.
- Next.js
- TypeScript
- Convex
- OpenAI
- Clerk
- ShadCN
- Tailwind CSS
π Robust Authentication: Secure and reliable user login and registration system.
π Modern Home Page: Showcases trending podcasts with a sticky podcast player for continuous listening.
π Discover Podcasts Page: Dedicated page for users to explore new and popular podcasts.
π Fully Functional Search: Allows users to find podcasts easily using various search criteria.
π Create Podcast Page: Enables podcast creation with text-to-audio conversion, AI image generation, and previews.
π Multi Voice AI Functionality: Supports multiple AI-generated voices for dynamic podcast creation.
π Profile Page: View all created podcasts with options to delete them.
π Podcast Details Page: Displays detailed information about each podcast, including creator details, number of listeners, and transcript.
π Podcast Player: Features backward/forward controls, as well as mute/unmute functionality for a seamless listening experience.
π Responsive Design: Fully functional and visually appealing across all devices and screen sizes.
and many more, including code architecture and reusability
Follow these steps to set up the project locally on your machine.
Prerequisites
Make sure you have the following installed on your machine:
Cloning the Repository
git clone https://github.com/Labeebopc/Podcastr-AI.git
cd Podcastr-AI
Installation
Install the project dependencies using npm:
npm install
Set Up Environment Variables
Create a new file named .env
in the root of your project and add the following content:
CONVEX_DEPLOYMENT=
NEXT_PUBLIC_CONVEX_URL=
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
NEXT_PUBLIC_CLERK_SIGN_IN_URL='/sign-in'
NEXT_PUBLIC_CLERK_SIGN_UP_URL='/sign-up'
Replace the placeholder values with your actual Convex & Clerk credentials. You can obtain these credentials by signing up on the Convex and Clerk websites.
Running the Project
npm run dev
Open http://localhost:3000 in your browser to view the project.
app/globals.css
@tailwind base;
@tailwind components;
@tailwind utilities;
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
background-color: #101114;
}
@layer utilities {
.input-class {
@apply text-16 placeholder:text-16 bg-black-1 rounded-[6px] placeholder:text-gray-1 border-none text-gray-1;
}
.podcast_grid {
@apply grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4;
}
.right_sidebar {
@apply sticky right-0 top-0 flex w-[310px] flex-col overflow-y-hidden border-none bg-black-1 px-[30px] pt-8 max-xl:hidden;
}
.left_sidebar {
@apply sticky left-0 top-0 flex w-fit flex-col justify-between border-none bg-black-1 pt-8 text-white-1 max-md:hidden lg:w-[270px] lg:pl-8;
}
.generate_thumbnail {
@apply mt-[30px] flex w-full max-w-[520px] flex-col justify-between gap-2 rounded-lg border border-black-6 bg-black-1 px-2.5 py-2 md:flex-row md:gap-0;
}
.image_div {
@apply flex-center mt-5 h-[142px] w-full cursor-pointer flex-col gap-3 rounded-xl border-[3.2px] border-dashed border-black-6 bg-black-1;
}
.carousel_box {
@apply relative flex h-fit aspect-square w-full flex-none cursor-pointer flex-col justify-end rounded-xl border-none;
}
.button_bold-16 {
@apply text-[16px] font-bold text-white-1 transition-all duration-500;
}
.flex-center {
@apply flex items-center justify-center;
}
.text-12 {
@apply text-[12px] leading-normal;
}
.text-14 {
@apply text-[14px] leading-normal;
}
.text-16 {
@apply text-[16px] leading-normal;
}
.text-18 {
@apply text-[18px] leading-normal;
}
.text-20 {
@apply text-[20px] leading-normal;
}
.text-24 {
@apply text-[24px] leading-normal;
}
.text-32 {
@apply text-[32px] leading-normal;
}
}
/* ===== custom classes ===== */
.custom-scrollbar::-webkit-scrollbar {
width: 3px;
height: 3px;
border-radius: 2px;
}
.custom-scrollbar::-webkit-scrollbar-track {
background: #15171c;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: #222429;
border-radius: 50px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
background: #555;
}
/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
.glassmorphism {
background: rgba(255, 255, 255, 0.25);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
}
.glassmorphism-auth {
background: rgba(6, 3, 3, 0.711);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
}
.glassmorphism-black {
background: rgba(18, 18, 18, 0.64);
backdrop-filter: blur(37px);
-webkit-backdrop-filter: blur(37px);
}
/* ======= clerk overrides ======== */
.cl-socialButtonsIconButton {
border: 2px solid #222429;
}
.cl-button {
color: white;
}
.cl-socialButtonsProviderIcon__github {
filter: invert(1);
}
.cl-internal-b3fm6y {
background: #f97535;
}
.cl-formButtonPrimary {
background: #f97535;
}
.cl-footerActionLink {
color: #f97535;
}
.cl-headerSubtitle {
color: #c5d0e6;
}
.cl-logoImage {
width: 10rem;
height: 3rem;
}
.cl-internal-4a7e9l {
color: white;
}
.cl-userButtonPopoverActionButtonIcon {
color: white;
}
.cl-internal-wkkub3 {
color: #f97535;
}
tailwind.config.ts
import type { Config } from "tailwindcss";
const config = {
darkMode: ["class"],
content: [
"./pages/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./app/**/*.{ts,tsx}",
"./src/**/*.{ts,tsx}",
],
prefix: "",
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
},
extend: {
colors: {
white: {
1: "#FFFFFF",
2: "rgba(255, 255, 255, 0.72)",
3: "rgba(255, 255, 255, 0.4)",
4: "rgba(255, 255, 255, 0.64)",
5: "rgba(255, 255, 255, 0.80)",
},
black: {
1: "#15171C",
2: "#222429",
3: "#101114",
4: "#252525",
5: "#2E3036",
6: "#24272C",
},
orange: {
1: "#F97535",
},
gray: {
1: "#71788B",
},
},
backgroundImage: {
"nav-focus":
"linear-gradient(270deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.00) 100%)",
},
keyframes: {
"accordion-down": {
from: { height: "0" },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: "0" },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
},
},
},
plugins: [require("tailwindcss-animate")],
} satisfies Config;
export default config;
constants/index.ts
export const sidebarLinks = [
{
imgURL: "/icons/home.svg",
route: "/",
label: "Home",
},
{
imgURL: "/icons/discover.svg",
route: "/discover",
label: "Discover",
},
{
imgURL: "/icons/microphone.svg",
route: "/create-podcast",
label: "Create Podcast",
},
];
export const voiceDetails = [
{
id: 1,
name: "alloy",
},
{
id: 2,
name: "echo",
},
{
id: 3,
name: "fable",
},
{
id: 4,
name: "onyx",
},
{
id: 5,
name: "nova",
},
{
id: 6,
name: "shimmer",
},
];
export const podcastData = [
{
id: 1,
title: "The Joe Rogan Experience",
description: "A long form, in-depth conversation",
imgURL:
"https://lovely-flamingo-139.convex.cloud/api/storage/3106b884-548d-4ba0-a179-785901f69806",
},
{
id: 2,
title: "The Futur",
description: "This is how the news should sound",
imgURL:
"https://lovely-flamingo-139.convex.cloud/api/storage/16fbf9bd-d800-42bc-ac95-d5a586447bf6",
},
{
id: 3,
title: "Waveform",
description: "Join Michelle Obama in conversation",
imgURL:
"https://lovely-flamingo-139.convex.cloud/api/storage/60f0c1d9-f2ac-4a96-9178-f01d78fa3733",
},
{
id: 4,
title: "The Tech Talks Daily Podcast",
description: "This is how the news should sound",
imgURL:
"https://lovely-flamingo-139.convex.cloud/api/storage/5ba7ed1b-88b4-4c32-8d71-270f1c502445",
},
{
id: 5,
title: "GaryVee Audio Experience",
description: "A long form, in-depth conversation",
imgURL:
"https://lovely-flamingo-139.convex.cloud/api/storage/ca7cb1a6-4919-4b2c-a73e-279a79ac6d23",
},
{
id: 6,
title: "Syntax ",
description: "Join Michelle Obama in conversation",
imgURL:
"https://lovely-flamingo-139.convex.cloud/api/storage/b8ea40c7-aafb-401a-9129-73c515a73ab5",
},
{
id: 7,
title: "IMPAULSIVE",
description: "A long form, in-depth conversation",
imgURL:
"https://lovely-flamingo-139.convex.cloud/api/storage/8a55d662-fe3f-4bcf-b78b-3b2f3d3def5c",
},
{
id: 8,
title: "Ted Tech",
description: "This is how the news should sound",
imgURL:
"https://lovely-flamingo-139.convex.cloud/api/storage/221ee4bd-435f-42c3-8e98-4a001e0d806e",
},
];