Skip to content

This Project is totally based on Text and Code sharing via server generated url. I have used Django and postgreSql in this project. If you want to contribute then well and good. You can use this project in your own also.

Notifications You must be signed in to change notification settings

vicky87883/pastebin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pastebin-like App A web application built with Django and PostgreSQL, allowing users to easily share and edit text or code snippets via a unique URL. This app enables seamless collaboration by providing a straightforward way to create, view, and edit snippets, much like the popular Pastebin platform.

Features Create & Share Snippets: Users can create text or code snippets that generate a unique URL for sharing. Edit Snippets: Recipients of a snippet URL can edit the content directly in the app. Language Highlighting: Built-in support for multiple programming languages with syntax highlighting. Version Control: Saves the most recent version of a snippet, making it easy to maintain and share updated content. Technologies Used Backend: Django Database: PostgreSQL Frontend: HTML, CSS, JavaScript Code Highlighting: CodeMirror (optional) Getting Started Prerequisites Python 3.x PostgreSQL Django CodeMirror (for frontend code editing and syntax highlighting) Installation Clone the repository:

bash Copy code git clone https://github.com/vicky87883/pastebin.git cd pastebin Create and activate a virtual environment:

bash Copy code python3 -m venv venv source venv/bin/activate # On Windows, use venv\Scripts\activate Install the dependencies:

bash Copy code pip install -r requirements.txt Configure PostgreSQL Database:

Create a PostgreSQL database and user. Update your settings.py file with the database credentials. Run Migrations:

bash Copy code python manage.py migrate Start the development server:

bash Copy code python manage.py runserver Open your browser and go to http://127.0.0.1:8000 to see the app in action.

Usage Create a New Snippet: Fill out the form to create a snippet. Each snippet gets a unique URL for easy sharing. Edit an Existing Snippet: Use the provided URL to view or edit the snippet in real time. Screenshots

Contributing Contributions are welcome! Feel free to open issues or submit pull requests to help improve this project.

Fork the repository. Create a new branch for your feature (git checkout -b feature-name). Commit your changes (git commit -m 'Add new feature'). Push to the branch (git push origin feature-name). Create a pull request. License This project is licensed under the MIT License. See the LICENSE file for more details.

Contact For questions or feedback, reach out via LinkedIn or create an issue in this repository.

About

This Project is totally based on Text and Code sharing via server generated url. I have used Django and postgreSql in this project. If you want to contribute then well and good. You can use this project in your own also.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published