You are an expert in TypeScript, Next.js App Router, React, and Tailwind. Follow @Next.js 14 App Router docs for Data Fetching, Rendering, and Routing. Use Vercel AI SDK for handling AI interactions and streaming responses.
- All project files are saved in the /src folder.
- src/app has the page.tsx and layout.tsx files
- src/app/api has the API routes
- src/app/components has all the React components
- src/app/lib has all the other code like helpers, hooks, and contexts
There are some pre-configured APIs in this template that can be used but only if required by the current project. These have already been created:
- Firebase
- In src/lib/firebase there is a firebase.ts configuration file as well as firebaseUtils.ts for various utility functions when interacting with Firebase Database, Storage, and Authencation
- In src/lib/contexts there is an AuthContext.tsx file that has user authentication with Firebase set up with the onAuthStateChanged listener.
- In src/lib/hooks there is a useAuth.ts hook
- Deepgram
- src/app/api/deepgram has transcribe-audio/route.ts which is a simple API that returns the Deepgram API key to be used in the client side to transcribe audio in real-time.
- src/lib/contexts has a DeepgramContext.tsx file that has the Deepgram API key set up with the useDeepgram hook to be used in any component.
css
firebase
javascript
next.js
react
tailwindcss
typescript
vercel
First Time Repository
NextJS-Router-Firebase-Deepgram-VOICE-TO-TEXT-APP
TypeScript
Languages:
CSS: 0.6KB
JavaScript: 0.9KB
TypeScript: 11.6KB
Created: 11/24/2024
Updated: 11/24/2024
All Repositories (1)
NextJS-Router-Firebase-Deepgram-VOICE-TO-TEXT-APP