CodeDrop allows you to easily paste and share code snippets with others. Set expiration times for automatic deletion and ensure secure, temporary sharing. Perfect for quick collaborations and ephemeral exchanges.
Visit the live demo of CodeDrop hosted on Vercel: https://codedrop.vercel.app
- Paste and Share: Quickly paste and share code snippets with a simple interface.
- Expiration Times: Set custom expiration times for snippets, ensuring temporary sharing.
- Syntax Highlighting: Automatic syntax highlighting for improved readability.
- Responsive Design: A modern, user-friendly interface adaptable to any device.
- Share Options: Easily share snippets with others through a generated link.
- Download Snippets: Option to download snippets as a PDF for offline access.
- Clipboard Copy: Copy code snippets directly to your clipboard for quick use.
- Frontend: SvelteKit
- Backend: Node.js, Express
- Database: MongoDB (using MongoDB+srv for scalability)
- ORM: Prisma
- Deployment: Vercel
- Syntax Highlighting: svelte-highlight
- PDF Generation: jsPDF library
- Clipboard Copy: clipboard.js
- Styling: Tailwind CSS for responsive design
Follow these instructions to set up CodeDrop on your local machine.
Ensure you have the following installed:
- Node.js (version 16.x or higher)
- npm (Node Package Manager)
-
Clone the Repository:
git clone https://github.com/your-username/codedrop.git cd codedrop
-
Install Dependencies:
npm install
-
Run the Development Server:
npm run dev
This will start the SvelteKit development server. Open your browser and visit
http://localhost:5173
to view the application.
To create an optimized production build:
npm run build
This will generate a production-ready version of your project in the build
directory.
To preview the production build locally:
npm run preview
We welcome contributions from the community! Here's how you can get involved:
-
Fork the Repository:
Click the "Fork" button at the top right of this page to create your own copy of the repository.
-
Clone Your Fork:
git clone https://github.com/your-username/codedrop.git cd codedrop
-
Create a Branch for Your Feature:
git checkout -b feature/your-feature-name
-
Make Your Changes:
Implement your changes or new features.
-
Commit Your Changes:
git commit -m "Add your descriptive commit message here"
-
Push to Your Fork:
git push origin feature/your-feature-name
-
Create a Pull Request:
Go to the original repository and open a pull request, providing a clear description of your changes.
- Follow the existing code style and structure.
- Write clear and concise commit messages.
- Ensure your code works by testing locally before submitting a pull request.
Thank you for contributing to CodeDrop! π