Skip to content

Mahdi-Devm/fullstack-next

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

25 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎨 ColorHunt Clone – Fullstack Next.js App

A beautiful fullstack clone of ColorHunt built with Next.js 15 App Router, styled with modern UI using Tailwind CSS, and extended with authentication, form validation, and JWT security.


πŸš€ Features

  • 🎨 Browse and explore beautiful color palettes
  • πŸ§‘β€πŸ’» Register & Login functionality
  • βœ… Form validation with Zod
  • πŸ” Authentication using JWT
  • πŸ“¦ Fullstack with Prisma ORM and PostgreSQL (or any other DB)
  • 🌈 UI inspired by ColorHunt + custom enhancements
  • πŸͺ„ Soft UI effects and smooth transitions
  • 🧁 Responsive design, works great on mobile & desktop

🧱 Tech Stack

Layer Tech
Frontend Next.js 15 (App Router) + React 19
Styling Tailwind CSS
Validation Zod
Auth JWT (token-based auth with cookie)
Database Prisma ORM with SQLite/PostgreSQL/etc.
Icons react-icons
State useState, server-side logic with next/headers
Env Config dotenv

πŸ–₯️ Local Setup

  1. Clone the repository:

git clone https://github.com/your-username/colorhunt-clone.git cd colorhunt-clone

Install dependencies:

npm install

Set environment variables:

Create a .env file based on .env.example:

DATABASE_URL=your_database_url JWT_SECRET=your_jwt_secret

Generate Prisma client:

npx prisma generate

Run the development server:

npm run dev


πŸ” Authentication Flow

Registration form sends data to a server action with Zod validation.

On success, JWT is generated and stored in an HTTP-only cookie.

Client reads cookie status via next/headers in Server Components.

Protected routes check for token presence.

πŸ“Έ UI/UX

Color palette inspired by ColorHunt

Responsive and accessible design

Smooth modals, hover states, and focus effects

Integrated react-icons for modern look

✨ Improvements over Original

βœ… User registration & login system

βœ… Server-side JWT auth with secure cookie

βœ… Form validation & error handling

βœ… Modular and maintainable folder structure

About

A beautiful fullstack clone of ColorHunt built with Next.js 15 App Router, styled with modern UI using Tailwind CSS, and extended with authentication, form validation, and JWT security.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages