PasteYou is a secure and versatile paste management application built with Node.js and SQLite. Users can create, share, and manage text snippets (pastes) with advanced features such as expiration times, password protection, and file uploads.
Clone the repository:
git clone https://github.com/sanjib9090/pasteyou.git
cd pasteyou
Install dependencies:
npm install
Create necessary directories:
Ensure that an uploads
directory exists for file storage:
mkdir uploads
Set up environment variables:
Create a .env
file in the root directory:
SESSION_SECRET=your-session-secret
PORT=3000
NODE_ENV=development
Initialize the database:
The application will automatically create the required tables in an SQLite database (database.db
) when you start the server.
Start the server:
npm start
The server will run at http://localhost:3000
.
/register
./login
./dashboard
) to view, update, or delete your pastes.app.js
: Main server file.views/
: EJS templates for rendering pages.public/
: Static files like CSS, images, etc.uploads/
: Directory for storing uploaded files.database.db
: SQLite database file.Contributions are welcome! Here's how you can contribute:
git checkout -b feature-branch
).git commit -am 'Add new feature'
).git push origin feature-branch
).This project is licensed under the MIT License. See the LICENSE file for more information.
PasteYou - A secure, user-friendly, and feature-rich paste management system.