A modern React-based application for managing and sharing text snippets with ease. Built with Vite, Tailwind CSS, and Redux Toolkit, this app offers robust functionalities with a better user interface.
Check out the live version of the app here: PasteManager
Explore the features and experience the seamless interface directly in your browser!
- Vite: Ultra-fast development and build tooling.
- React: Latest version for building modern UI components.
- Tailwind CSS: Utility-first CSS framework for building custom designs without leaving your HTML.
- ESLint: A pluggable linter tool for ensuring code quality.
- Redux Toolkit: State management with slices and reducers.
- React Hot Toast: For elegant notifications in your application.
- React Router DOM: Declarative routing for React.
- Create: Add and save new text snippets.
- View: Display saved snippets in a clean and organized manner.
- Delete: Remove unwanted snippets with a simple action.
- Copy: Quickly copy snippets to the clipboard with one click.
- Share: Share your snippets via a unique link.
Install Vite globally (if not already installed):
npm create vite@latest- Install Tailwind CSS and its dependencies:
npm install -D tailwindcss postcss autoprefixer- Initialize Tailwind configuration:
npx tailwindcss init- Update the tailwind.config.js file with the following content to specify which files Tailwind should scan:
/** @type {import('tailwindcss').Config} */
export default {
content: [
'./index.html',
'./src/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {},
},
plugins: [],
}- Add the following lines to your src/index.css (or src/main.css if you’re using that):
@tailwind base;
@tailwind components;
@tailwind utilities;- Install the project dependencies:
npm install- Start the development server with the following command:
npm run devOpen the app in your browser at http://localhost:5173.
- Build the Project for Production
npm run build- Preview Production Build
npm run preview- Lint the Code
npm run lint- @reduxjs/toolkit: A powerful library for managing application state with Redux.
- react-icons/fi: Icon set for React that provides various UI icons.
- react: The core React library for building user interfaces.
- react-dom: DOM bindings for React.
- react-hot-toast: Notifications system for React.
- react-redux: Official React bindings for Redux.
- react-router-dom: Provides routing functionalities in React apps.
Here is the basic structure of the project:
paste/
│
├── node_modules/
├── public/
├── src/
│ ├── assets/
│ ├── components/
│ ├── pages/
│ ├── App.jsx
│ ├── main.jsx
│ └── index.css
│
├── .eslintrc.js
├── tailwind.config.js
├── postcss.config.js
├── vite.config.js
└── package.jsonThis project is licensed under the MIT License.
For any queries or suggestions, feel free to reach out via GitHub Issues.