This project is a simple AI-powered Q&A web application built using the T3 stack (TypeScript, Tailwind CSS, tRPC). Users can ask questions and receive AI-generated responses.
- Ask questions and receive AI-generated answers
- View recent Q&A history
- Simple and responsive UI
- Node.js (v14 or later)
- npm or pnpm
-
Clone the repository:
git clone https://github.com/your-username/ai-qa-app.git cd ai-qa-app -
Install dependencies:
npm install # or pnpm install -
Set up environment variables:
- Copy
.env.exampleto.env.local - Add your AI service API key to
.env.local
- Copy
-
Run the development server:
npm run dev # or pnpm dev -
Open http://localhost:3000 in your browser to see the result.
src/components: React componentssrc/pages: Next.js pagessrc/server: tRPC API routes and server-side logicsrc/styles: Global styles and Tailwind CSS configurationsrc/utils: Utility functions and API helpers
npm run dev: Start the development servernpm run build: Build the application for productionnpm start: Start the production servernpm run lint: Run ESLintnpm run test: Run tests (if implemented)
- This project is designed to be completed in 2-4 hours.
- Focus on implementing the core functionality first.
- Pay attention to code organization, type safety, and basic error handling.
- If time allows, consider adding extra features or improving the UI.
This project is open source and available under the MIT License.