Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vicky87883/pastebin

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.
https://github.com/vicky87883/pastebin

codesharingplatform django opensourceproject pastebinclone pythonproject snippet textsnipetapp textstorage

Last synced: 4 days ago
JSON representation

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.

Awesome Lists containing this project

README

        

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.