|
| 1 | +# 🌟 React - ThreeJS - EaselJS Drawing App 🎨 |
| 2 | + |
| 3 | +Welcome to the **React-ThreeJS EaselJS Drawing App** – a powerful tool for creating 2D and 3D visualizations! This app covers you whether you're looking to draw, manipulate shapes, or view objects in a 3D scene. Let's unleash your creativity! 🌐✨ This is the perfect boilerplate to kickstart your drawing projects with React, ThreeJS, and EaselJS! 🚀 |
| 4 | + |
| 5 | +## 🎯 Key Features |
| 6 | + |
| 7 | +- 🎨 **Draw Shapes:** Draw rectangles, circles, lines, and custom paths effortlessly with a click-and-drag interface. |
| 8 | +- ✋ **Shape Manipulation:** Move, drag, and delete shapes as needed. Shapes adjust in real time for a smooth experience! |
| 9 | +- 🌐 **3D Viewer:** Toggle between 2D and view-only 3D mode to see your drawings come to life in a new dimension. |
| 10 | +- 🎨 **Random Colors:** Each shape you create is assigned a random stroke and fill color. |
| 11 | +- ⚡ **Real-Time Updates:** Watch your canvas update instantly as you interact with shapes. |
| 12 | +- ⌨️ **Keyboard Support:** Delete selected shapes using the Delete or Backspace keys for quick editing. |
| 13 | + |
| 14 | +## 🛠️ Tech Stack |
| 15 | + |
| 16 | +This project is built using modern technologies: |
| 17 | + |
| 18 | +- **React** ⚛️ |
| 19 | +- **Three.js** 🌐 |
| 20 | +- **EaselJS** 🎨 |
| 21 | +- **Vite** ⚡ |
| 22 | +- **Lodash** 🛠️ |
| 23 | +- **TypeScript** 🔧 |
| 24 | +- **Firebase** 🔥 |
| 25 | +- **SonarCloud** 🧪 |
| 26 | + |
| 27 | +### 📦 Dependencies |
| 28 | + |
| 29 | +The project relies on several key libraries: |
| 30 | + |
| 31 | +**React:** A library for building user interfaces. |
| 32 | +**Three.js:** A powerful 3D engine for rendering the 3D view mode. |
| 33 | +**EaselJS:** A library for drawing and manipulating 2D shapes. |
| 34 | +**Vite:** A fast build tool for modern web development. |
| 35 | +**Lodash:** A utility library for working with arrays, objects, and more. |
| 36 | + |
| 37 | +### 🚀 Getting Started |
| 38 | + |
| 39 | +To start the project locally, fork the repo and follow these steps: |
| 40 | + |
| 41 | +``` |
| 42 | +1. 🍴 Fork the repository |
| 43 | +2. 📥 Clone your forked repository |
| 44 | +3. 🛠️ Run `yarn install` to install dependencies |
| 45 | +4. 🚀 Run `yarn dev` to start the local development server |
| 46 | +``` |
| 47 | + |
| 48 | +The app will run on http://localhost:5173. |
| 49 | + |
| 50 | +### Expanding the ESLint configuration |
| 51 | + |
| 52 | +If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: |
| 53 | + |
| 54 | +- Configure the top-level `parserOptions` property like this: |
| 55 | + |
| 56 | +```js |
| 57 | +export default tseslint.config({ |
| 58 | + languageOptions: { |
| 59 | + // other options... |
| 60 | + parserOptions: { |
| 61 | + project: ['./tsconfig.node.json', './tsconfig.app.json'], |
| 62 | + tsconfigRootDir: import.meta.dirname, |
| 63 | + }, |
| 64 | + }, |
| 65 | +}) |
| 66 | +``` |
| 67 | + |
| 68 | +- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked` |
| 69 | +- Optionally add `...tseslint.configs.stylisticTypeChecked` |
| 70 | +- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config: |
| 71 | + |
| 72 | +```js |
| 73 | +// eslint.config.js |
| 74 | +import react from 'eslint-plugin-react' |
| 75 | + |
| 76 | +export default tseslint.config({ |
| 77 | + // Set the react version |
| 78 | + settings: { react: { version: '18.3' } }, |
| 79 | + plugins: { |
| 80 | + // Add the react plugin |
| 81 | + react, |
| 82 | + }, |
| 83 | + rules: { |
| 84 | + // other rules... |
| 85 | + // Enable its recommended rules |
| 86 | + ...react.configs.recommended.rules, |
| 87 | + ...react.configs['jsx-runtime'].rules, |
| 88 | + }, |
| 89 | +}) |
| 90 | +``` |
| 91 | + |
| 92 | +### 👾 How can I contribute? |
| 93 | + |
| 94 | +- ⭐ Star the repository |
| 95 | +- 🛠️ Submit pull requests, report bugs, or suggest features |
| 96 | + |
| 97 | +### 📬 Get in Touch |
| 98 | + |
| 99 | +Feel free to reach out if you have any questions or need help: |
| 100 | + |
| 101 | +- **GitHub:** https://github.com/mustafacagri |
| 102 | +- **Linkedin:** [@MustafaCagri](https://www.linkedin.com/in/mustafacagri/) |
| 103 | + |
| 104 | +Made with ❤️ in 📍 Istanbul, using React ⚛️, Three.js 🌐, EaselJS 🎨, TypeScript 🔧, Vite ⚡, and Lodash 🛠️! |
0 commit comments