Skip to content

πŸ–ŒοΈ FigPro is a collaborative design tool for building meaningful products. Seamlessly design, prototype, develop, and collect feedback in a single platform.

License

Notifications You must be signed in to change notification settings

ladunjexa/nextjs14-figma

Repository files navigation

Next.js 14 FigPro (Figma Clone)

Latest release Stars Fork GitHub commits Pull requests

demo

ladunjexa License Top Language Contributors Release PRs deployment Known Vulnerabilities

🌐 Live Demo

Explore the live demonstration of the project: nextjs14-figma

πŸ“ Description

FigPro is a Figma Clone built with Next.js 14 and Tailwind CSS using Liveblocks and Fabric.js. It is a collaborative design tool for building meaningful products. Seamlessly design, prototype, develop, and collect feedback in a single platform.

Folder Structure
nextjs14-figma/
β”œβ”€β”€ .vscode/
β”‚   └── settings.json
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ (root)/
β”‚   β”‚   └── app.tsx
β”‚   β”œβ”€β”€ api/
β”‚   β”‚   └── liveblocks/
β”‚   β”‚       └── auth.ts
β”‚   β”œβ”€β”€ favicon.ico
β”‚   β”œβ”€β”€ globals.css
β”‚   β”œβ”€β”€ layout.tsx
β”‚   └── page.tsx
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ comments/
β”‚   β”‚   β”œβ”€β”€ comments-overlay.tsx
β”‚   β”‚   β”œβ”€β”€ comments.tsx
β”‚   β”‚   β”œβ”€β”€ new-thread-cursor.tsx
β”‚   β”‚   β”œβ”€β”€ new-thread.tsx
β”‚   β”‚   β”œβ”€β”€ pinned-composer.tsx
β”‚   β”‚   └── pinned-thread.tsx
β”‚   β”œβ”€β”€ cursor/
β”‚   β”‚   β”œβ”€β”€ cursor-chat.tsx
β”‚   β”‚   β”œβ”€β”€ cursor.tsx
β”‚   β”‚   └── live-cursors.tsx
β”‚   β”œβ”€β”€ layout/
β”‚   β”‚   β”œβ”€β”€ left-sidebar.tsx
β”‚   β”‚   β”œβ”€β”€ loader.tsx
β”‚   β”‚   β”œβ”€β”€ navbar.tsx
β”‚   β”‚   └── right-sidebar.tsx
β”‚   β”œβ”€β”€ live.tsx
β”‚   β”œβ”€β”€ reaction/
β”‚   β”‚   β”œβ”€β”€ flying-reaction.module.css
β”‚   β”‚   β”œβ”€β”€ flying-reaction.tsx
β”‚   β”‚   └── reaction-selector.tsx
β”‚   β”œβ”€β”€ settings/
β”‚   β”‚   β”œβ”€β”€ color.tsx
β”‚   β”‚   β”œβ”€β”€ dimension.tsx
β”‚   β”‚   β”œβ”€β”€ export.tsx
β”‚   β”‚   └── text.tsx
β”‚   β”œβ”€β”€ shapes-menu.tsx
β”‚   β”œβ”€β”€ ui/
β”‚   β”‚   β”œβ”€β”€ button.tsx
β”‚   β”‚   β”œβ”€β”€ context-menu.tsx
β”‚   β”‚   β”œβ”€β”€ dialog.tsx
β”‚   β”‚   β”œβ”€β”€ dropdown-menu.tsx
β”‚   β”‚   β”œβ”€β”€ input.tsx
β”‚   β”‚   β”œβ”€β”€ label.tsx
β”‚   β”‚   └── select.tsx
β”‚   └── users/
β”‚       β”œβ”€β”€ avatar.module.css
β”‚       β”œβ”€β”€ avatar.tsx
β”‚       └── live-avatars.tsx
β”œβ”€β”€ constants/
β”‚   └── index.ts
β”œβ”€β”€ hooks/
β”‚   β”œβ”€β”€ use-interval.ts
β”‚   └── use-max-z-index.ts
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ canvas.ts
β”‚   β”œβ”€β”€ key-events.ts
β”‚   β”œβ”€β”€ shapes.ts
β”‚   └── utils.ts
β”œβ”€β”€ providers/
β”‚   └── room-provider.tsx
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ .DS_Store
β”‚   β”œβ”€β”€ assets/
β”‚   β”‚   β”œβ”€β”€ CursorSVG.tsx
β”‚   β”‚   └── [[...]].{svg,gif,ico}
β”‚   β”œβ”€β”€ next.svg
β”‚   β”œβ”€β”€ thumbnail.png
β”‚   └── vercel.svg
β”œβ”€β”€ types/
β”‚   β”œβ”€β”€ declaration.d.ts
β”‚   └── index.ts
└── utils/
β”‚   └── get-contrasting-color.ts
β”œβ”€β”€ .env.local
β”œβ”€β”€ .eslintignore
β”œβ”€β”€ .eslintrc.json
β”œβ”€β”€ .gitignore
β”œβ”€β”€ .prettierignore
β”œβ”€β”€ .prettierrc
β”œβ”€β”€ components.json
β”œβ”€β”€ liveblocks.config.ts
β”œβ”€β”€ next-env.d.ts
β”œβ”€β”€ next.config.mjs
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ package.json
β”œβ”€β”€ postcss.config.mjs
β”œβ”€β”€ README.md
β”œβ”€β”€ tailwind.config.ts
└── tsconfig.json

πŸ“– Table of Contents

Table of Contents

✨ Technologies Used

FigPro is built using the following technologies:
  • TypeScript: TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.
  • Next.js: Next.js is a React framework for building server-side rendered and statically generated web applications.
  • Tailwind CSS: Tailwind CSS is a utility-first CSS framework for rapidly building custom user interfaces.
  • Liveblocks: Liveblocks is a real-time collaboration API for building collaborative applications.
  • Fabric.js: Fabric.js is a powerful and simple JavaScript HTML5 canvas library.
  • Framer Motion: Framer Motion is a production-ready motion library for React.
  • ESLint: ESLint is a static code analysis tool for identifying problematic patterns found in JavaScript code.
  • Prettier: Prettier is an opinionated code formatter.
  • Shadcn-UI: Shadcn UI is a React UI library that helps developers rapidly build modern web applications.
  • jsPDF: jsPDF is a client-side JavaScript PDF generation library.
  • Vercel: Vercel is a cloud platform for frontend developers, providing the frameworks, workflows, and infrastructure to build a faster, more personalized Web.

Technologies Used

🧰 Get Started

To get this project up and running in your development environment, follow these step-by-step instructions.

πŸ“‹ Prerequisites

In order to install and run this project locally, you would need to have the following installed on your local machine.

βš™οΈ Installation and Run Locally

Step 0:

Important

  • the application uses Liveblocks for Real-time Collaboration, therefore, you need to create Liveblocks account here and sets the NEXT_PUBLIC_LIVEBLOCKS_PUBLIC_KEY and NEXT_PUBLIC_LIVEBLOCKS_SECRET_KEY environment variables in .env file.

Step 1:

Download or clone this repo by using the link below:

git clone https://github.com/ladunjexa/nextjs14-figma.git

Step 2:

Execute the following command in the root directory of the downloaded repo in order to install dependencies:

npm install

Step 3:

Execute the following command in order to run the development server locally:

npm run dev

Step 4:

Open http://localhost:3000 with your browser to see the result.

πŸ“œ Scripts

All scripts are defined in the package.json file. Here is a list of all scripts:

Script Action
npm install Installs dependencies
npm run dev Starts local dev server at localhost:3000
npm run build Build your production site to ./dist/
npm run start Start your production site locally
npm run lint Run ESLint

πŸ”’ Environment Variables

Environment variables[^2] can be used for configuration. They must be set before running the app.

Environment variables are variables that are set in the operating system or shell, typically used to configure programs.

FigPro uses Liveblocks for real-time collaboration. You need to create an account on Liveblocks and get the required credentials to run the app.

Create a .env file in the root directory of the project and add the following environment variables:

NEXT_PUBLIC_LIVEBLOCKS_PUBLIC_KEY=<LIVEBLOCKS_PUBLIC_KEY>
NEXT_PUBLIC_LIVEBLOCKS_SECRET_KEY=<LIVEBLOCKS_SECRET_KEY>

πŸš€ Deployment

Deploy to production (manual)

You can create an optimized production build with the following command:

npm run build

Deploy on Vercel (recommended)

The easiest way to deploy this Next.js app is to use the Vercel Platform.

Deploy with Vercel

Deploy on Netlify

You can also deploy this Next.js app with Netlify.

Deploy with Netlify

Check out Next.js deployment documentation for more details.

πŸ”§ Contributing

contributors

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

To fix a bug or enhance an existing module, follow these steps:

  1. Fork the repo
  2. Create a new branch (git checkout -b improve-feature)
  3. Make the appropriate changes in the files
  4. Commit your changes (git commit -m 'Improve feature')
  5. Push to the branch (git push origin improve-feature)
  6. Create a Pull Request πŸŽ‰

πŸ“© Bug / Feature Request

If you find a bug (failure of a module to execute its intended function), kindly open an issue here by including the issue with a title and clear description.

If you'd like to request a new function, feel free to do so by opening an issue here. Please include sample queries and their corresponding results.

πŸ’Ž Acknowledgements

I'd like to express my gratitude to the following people who helped me with this project and made it possible:

πŸ“ž Contact Us

Telegram LinkedIn Instagram Discord

πŸ“‹ License

FigPro is open source software licensed as MIT and is free to use β€” See LICENSE for more details.

About

πŸ–ŒοΈ FigPro is a collaborative design tool for building meaningful products. Seamlessly design, prototype, develop, and collect feedback in a single platform.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published