A sleek and intuitive digital whiteboard app built with Next.js and Tailwind CSS. Perfect for sketching ideas, diagrams, flows, and everything in betweenโright in your browser.
git clone https://github.com/hariop12/whiteboard.git
cd whiteboard
npm install
If you encounter peer dependency issues, try with:
npm install --legacy-peer-deps
sample.env
file to .env
NEXTAUTH_SECRET=your_generated_nextauth_secret
MONGODB_URI=your_mongodb_connection_string
You can generate a secure secret using node with crypto:
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
Paste the output as your NEXTAUTH_SECRET
.
npm run dev
Then open http://localhost:3000 in your browser.
whiteboard/
โ
โโโ app/ # Next.js App Router pages & layout
โโโ components/ # Reusable UI components (Toolbars, Buttons, etc.)
โโโ contexts/ # React Contexts (Drawing, Theme, etc.)
โโโ hooks/ # Custom hooks (drawing, shape logic, etc.)
โโโ lib/ # Utility functions and helpers
โโโ types/ # TypeScript types
โโโ public/ # Static assets
โโโ styles/ # Global styles and Tailwind base
โ
โโโ .env # Environment variables
โโโ tailwind.config.ts # Tailwind config
โโโ postcss.config.mjs # PostCSS config
โโโ next.config.mjs # Next.js config
โโโ package.json
โโโ tsconfig.json
โโโ package-lock.json
Currently a solo project, but contributions are welcome in the future! Feel free to fork the repo and explore ๐
This project is licensed under the MIT License
Made with โ and โ๏ธ by Harish