BooksGod is a Next.js application designed for managing and exploring books. It incorporates the latest features and best practices of Next.js 14, providing a comprehensive platform for both readers and authors.
Users can log in, search for books, read, and register as authors to write their own books. Authors can utilize the provided editor to write, save drafts, and publish. It supports book cover uploads, details, and allows paid book purchases for users.
- React server components
- TRPC
- Reader for reading books
- Editor for writing books
- User friendly dashboard
- Docs for authors using contentlayer
- Image upload with AWS S3
- Filter options for books
- Search with infinite pagination
- Community for users and authors
- Optimistic updates
- Redis caching
- Authentication using Clerk
- Validations using zod
- Drizzle ORM
- Database - PlanetScale
- Rate Limiting
- Book Purchasing with Stripe
- Loading States using Suspense
- UI component library - NextUi
- Styled using Tailwind CSS
- Deployed on Vercel Edge
Documentation for Authors- More Author Features
- Auto-Save Editor Functionality
- Reading Preferences
-
Install dependencies:
pnpm install
-
Copy
.env.example
to.env.local
and update the variables:cp .env.example .env.local
-
Start the development server:
pnpm dev