QHub is a question and answer application. It gives user ability to post problem on any topic using markdown
, svg
, latex
, html
, css
, text
, audio
, and vedio
.
Application url - QHub,
https://qhub.vercel.app
- Implement loading page ✔️
- TODO: improve loading UI using
Skeleton
- TODO: improve loading UI using
- Implement home page ⏳
- Implement problem details page. ⏳
- Implement post page. ✔️
- Implement server action to create problem. ✔️
- Implement `problem`` service. ✔️
- Implement
activity
service. ✔️
- Display profile image and full name ✔️
- Identify entities involved ✔️
- Update entities and relationship in
schema.prisma
✔️ - Generate and push the changes. ✔️
- Update clerk endpoint for production deployment.
- Add
shadcn/ui
usingnpx shadcn-ui@latest init
- Testing
- Jest
npm install -D jest jest-environment-jsdom @testing-library/react @testing-library/jest-dom
npm init jest@latest
npm install -D ts-node
npm install --save-dev @jest/globals
- Jest
- Authentication
- Install
clerk
usingnpm install @clerk/nextjs
- Install
- Database setup
- Install
prisma
usingnpm install -D prisma
- Install prisma client using
npm install @prisma/client
- Init prisma
npx prisma init
- Use
npx prisma db push
to push new changes followed bynpx prisma generate
- Use
npx prisma studio
to view data
- Install
- ngrok
ngrok http --domain=amoeba-suited-basically.ngrok-free.app 3000
- Webhooks
- Install
svix
usingnpm install svix
- Install
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.