AlphaText is a JavaScript + React web application that empowers users to manipulate text in various formats. The front end is built with React, providing an interactive user interface, while the logical end, powered by JavaScript, handles the text manipulations. Explore the different text formatting options seamlessly with this easy-to-use application.
- Installation
- Usage
- JavaScript Logics
- Frontend
- Contributing
To install and run AlphaText, follow these steps:
-
Clone the repository:
git clone https://github.com/gagan257/AlphaText.git
-
Navigate to the project directory:
cd AlphaText
-
Install dependencies for the frontend:
npm install
-
Run the frontend server:
npm run start
- Open the 'index.html' file in your preferred web browser.
- Enter your text in the input field.
- Choose the desired text manipulation option from the menu.
- Click the button to see the formatted text.
-
Lowercase
setText(text.toLowerCase());
-
UpperCase
setText(text.toUpperCase());
-
Camel case
let newText = text.split(" "); for (let i = 0; i < newText.length; i++) { newText[i] = newText[i].charAt(0).toUpperCase() + newText[i].slice(1); } setText(newText.join(" "));
-
Snake Case
let newText = text.split(" "); for (let i = 0; i < newText.length; i++) { newText[i] = newText[i].toLowerCase(); } setText(newText.join("_"));
-
Kebab-Case
let newText = text.split(" "); for (let i = 0; i < newText.length; i++) { newText[i] = newText[i].toLowerCase(); } setText(newText.join("-"));
-
Remove Extra Spaces
let newText = text.split(/[ ]+/); setText(newText.join(" "));
The frontend of AlphaText is built with React, a popular JavaScript library for building user interfaces. Below, you'll find an overview of the frontend structure and some key components:
|-- AlphaText/
| |-- public/
| |-- src/
| | |-- components/
| | | |-- Developer.js
| | | |-- Footer.js
| | | |-- Navbar.js
| | | |-- TextForm.js
| | |-- App.css
| | |-- App.js
| | |-- App.test.js
| | |-- index.js
| | |--
| |-- package.json
| |-- ...
React: The frontend is built using React, allowing for a modular and efficient UI development.
Bootstrap: Bootstrap components are utilized for a clean and responsive design, ensuring a user-friendly experience.
React Router DOM Allows to make single page Applications.
-Feel free to contribute to the development of AlphaText by submitting bug reports, feature requests, or code contributions.
Gagan Arora Admin |
Krishna Rajput Documentation & Manager |
NovalGreat Tester |