Skip to content

sharryXheisenberg/PasteManager

Repository files navigation

PasteManager

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.

🚀 Live Project

Check out the live version of the app here: PasteManager
Explore the features and experience the seamless interface directly in your browser!

Features

  • 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.

Functionalities

  1. Create: Add and save new text snippets.
  2. View: Display saved snippets in a clean and organized manner.
  3. Delete: Remove unwanted snippets with a simple action.
  4. Copy: Quickly copy snippets to the clipboard with one click.
  5. Share: Share your snippets via a unique link.

Installation

Step 1: Create a Vite project

Install Vite globally (if not already installed):

npm create vite@latest

Step 2: Install Tailwind CSS

  1. Install Tailwind CSS and its dependencies:
npm install -D tailwindcss postcss autoprefixer
  1. Initialize Tailwind configuration:
npx tailwindcss init
  1. 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: [],
}
  1. Add the following lines to your src/index.css (or src/main.css if you’re using that):
@tailwind base;
@tailwind components;
@tailwind utilities;

Scripts

Step 4: Install Required Packages

  1. Install the project dependencies:
npm install
  1. Start the development server with the following command:
npm run dev

Open the app in your browser at http://localhost:5173.

  1. Build the Project for Production
npm run build
  1. Preview Production Build
npm run preview
  1. Lint the Code
npm run lint

Packages Used

  • @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.

Project structure

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.json

License

This project is licensed under the MIT License.

Contact

For any queries or suggestions, feel free to reach out via GitHub Issues.

Acknowledgements

About

This repo is all about the 'PasteManager' . A frontend application which manages our notes and pastes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published