π Welcome π to the Paint App project! ποΈ This exciting and interactive πΉοΈ paint application is built π οΈ using ReactJS βοΈ. Just like MS-Paint πΌοΈ, it lets you draw ποΈ on a canvas πΌοΈ with customizable π οΈ brush colors π¨, widths π, and opacity π. Let's dive in and create some art! π¨πΌοΈ
The Paint App π¨ is a versatile and user-friendly π₯οΈ application that enables users π₯ to create beautiful πΌοΈ artwork π¨ using a brush ποΈ on an HTML canvas πΌοΈ. The app consists of two main sections π: a drawing area π¨ and a menu π οΈ for customizing 𧩠the brush settings ποΈ. With this app, you can unleash your creativity π§ and have fun π₯³!
- React βοΈ: For building the app's interactive πΉοΈ components.
- HTML Canvas πΌοΈ: For the drawing surface ποΈ where you create your art π¨.
- CSS π¨: For styling π and making the paint app look visually appealing π.
- JavaScript ES6 π: For implementing the drawing logic π§ and interactive features π οΈ.
-
Clone π₯οΈ the repository π:
git clone https://github.com/nidhiupman568/PaintApp-Using-React.JS.git
-
Navigate πΆββοΈ to the project folder π:
cd paint-app
-
Install π₯ the necessary dependencies π οΈ:
npm install
-
Run π the application:
npm start
-
Open π your web browser π and go to:
http://localhost:3000/
Hereβs a preview πΌοΈ of the Paint App in action ποΈ:
π The project structure looks like this:
- App.js π₯οΈ: Implements the canvas πΌοΈ and handles the drawing ποΈ logic. This file includes the main ποΈ functionality of the paint app.
- Menu.js π οΈ: Contains the menu π οΈ for customizing 𧩠the brush color π¨, size π, and opacity π.
- App.css π¨: Styles π the paint component ποΈ and ensures the app looks attractive π.
-
Create π οΈ a React application π:
npx create-react-app paint-app
-
Navigate πΆββοΈ to the project folder π:
cd paint-app
-
Set Up π οΈ the components π¦:
- Create a folder π called
components
in thesrc
directory π. - Inside the
components
folder π, create a file π namedMenu.js
.
- Create a folder π called
-
Dependencies π₯: The
package.json
file will include:"dependencies": { "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "5.0.1", "web-vitals": "^2.1.4" }
-
Write Code π:
- App.js π₯οΈ: Implement the canvas πΌοΈ and drawing logic ποΈ.
- Menu.js π οΈ: Create a menu π οΈ for brush settings π§©.
- App.css π¨: Style π the paint component ποΈ.
-
Start π the application:
npm start
-
View π the app in your browser π at:
http://localhost:3000/
Enjoy creating art πΌοΈ with the Paint App! π Feel free to share your feedback π¬ or contribute to the project by making a pull request π€. Happy painting! ποΈπ¨
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject
, you can't go back!
If you aren't satisfied with the build tool and configuration choices, you can eject
at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
You don't have to ever use eject
. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify