A modern, full-stack Local Business Discovery and Review Platform built with Next.js, Prisma, and NextAuth.
- Business Discovery: Browse verified local businesses across various categories (Cafes, Restaurants, Fitness, etc.).
- Authentic Reviews: Share experiences, provide ratings, and read authentic community feedback.
- Reward System: Earn points for contributing reviews and redeem them for exciting rewards.
- Event Management: Hosted events by businesses with integrated ticket sales.
- Business Onboarding: Seamless flow for business owners to list and verify their establishments.
- Community Engagement: Leaderboards for top reviewers and community stats.
- Real-time Analytics: Platform-wide stats for businesses, reviews, and events.
- Framework: Next.js (App Router)
- Authentication: NextAuth.js
- Database: Prisma with PostgreSQL
- Styling: Tailwind CSS
- UI Components: Radix UI & Shadcn UI
- Icons: Lucide React
- Storage: Minio for file uploads
- Forms: React Hook Form with Zod validation
- Node.js 18+
- PostgreSQL database
- Minio server (for storage)
-
Clone the repository:
git clone https://github.com/jnaneshshetty51/review-platform.git cd review-platform -
Install dependencies:
npm install
-
Set up environment variables: Create a
.envfile in the root directory and add the following:DATABASE_URL="postgresql://..." NEXTAUTH_SECRET="..." NEXTAUTH_URL="http://localhost:3000" MINIO_ENDPOINT="..." MINIO_ACCESS_KEY="..." MINIO_SECRET_KEY="..."
-
Run database migrations:
npx prisma migrate dev
-
Start the development server:
npm run dev
src/app: Page components and API routes (Next.js App Router).src/components: Reusable UI components.src/server: Server-side logic and Prisma queries.src/lib: Utility functions and mock data.src/hooks: Custom React hooks.prisma: Database schema and migrations.
This project is licensed under the MIT License.