π Welcome to the QR Code Generator project! π This powerful πͺ tool lets you generate QR codes π± easily using ReactJS βοΈ. With just a few clicks π±οΈ, you can create QR codes π² that can store URLs π, contact information π, and more!
The QR Code Generator πΌοΈ is an intuitive and user-friendly π§βπ» application built π¨ using ReactJS βοΈ. It allows users π₯ to input text π€ and instantly generate a QR code π±. The application supports various QR code styles and can be customized to suit your needs π¨. Perfect for sharing links π, business information π, and more!
- ReactJS βοΈ: For building the applicationβs core logic π§ and user interface π¨.
- CSS π¨: For styling the application and making it visually appealing π.
- JavaScript ES6 π»: For handling the QR code generation and application logic π.
-
Clone π₯οΈ the repository π:
git clone https://github.com/nidhiupman568/QRCode-Generator-Using-React.JS.git
-
Navigate πΆββοΈ to the project folder π:
cd qr-code-generator
-
Install π₯ the necessary dependencies π οΈ:
npm install
-
Start π the application:
npm start
-
Open π your web browser π and go to:
http://localhost:3000/
Check out this screenshot πΌοΈ of the QR Code Generator in action π:
π The project is structured as follows:
- App.js π₯οΈ: Contains the main logic π― and rendering π of the QR code generator πΌοΈ.
- QRCode.js π: Handles the QR code generation functionality π οΈ.
- App.css π¨: Includes styling π to make the application look good π.
- components π¦: Contains reusable components like QRCode and InputForm π οΈ.
- App.js π₯οΈ: Implements the core logic π and UI πΌοΈ components.
- QRCode.js π: Manages QR code generation π οΈ and rendering πΈ.
- App.css π¨: Styles the application π , including colors π¨ and layout π.
-
Create a React application by running the following command π»:
npx create-react-app qr-code-generator
-
Navigate to the project folder π:
cd qr-code-generator
-
Create the components π¦ inside the
src
directory and start coding π₯οΈ. -
Install dependencies π₯ by running:
npm install react-qrcode-logo
-
Write the code π in respective files:
- App.js π₯οΈ: Implement the main logic and UI πΌοΈ.
- QRCode.js π: Handle QR code generation π οΈ.
- App.css π¨: Style the application π .
The dependencies in package.json
will look like this:
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"react-qrcode-logo": "^1.0.1",
"web-vitals": "^2.1.4"
}
-
Run the application using the following command π» from the root directory of the project:
npm start
-
Open π your browser π and navigate to:
http://localhost:3000/
Enjoy using the QR Code Generator! π Feel free to share your feedback π¬ or contribute to the project by making a pull request π. Happy QR coding! π²
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