Pastebin
Sharing short code samples, logs or links is now easier than ever.
Explore the docs »
• Report Bug • Request Feature •
About The Project
With the help of Pastebin you can share some random texts, codes, links, logs etc. with everyone. You just need to create a document, set password to it for editing and share with everyone. You don't need any account creation, It's free from signin/signup. It's simpler than ever.
Features
- Create Documents
- Set Password to Document for editing
- Share Document with others
Tech Stack
- React.js
- Node.js
- Express.js
- MongoDB
- JavaScript
- Chakra UI
Screenshots
Getting Started
To get a local copy up and running follow these simple steps.
Prerequisites
In order to get a copy of the project you will require you to have Node.js (v14+) and the NPM package manager installed. If you don't have it, you can download the latest version of Node.js from the official website which also installs the NPM package manager by default.
Installation
Open the terminal in the folder in which you wish to clone the repository and enter the following command:
git clone https://github.com/prasoonsoni/Pastebin.git
cd server (For Server)
cd client(For Client)
Install all the NPM packages:
npm i
In order to run the server:
npm i -D nodemon (One time installation)
npx nodemon index.js
In order to run the frontend:
npm run start
Note that you will have to add your own
.env
file at the root directory for both client and server, and add your own environment variables for the project to build.
Following are the environment variables used for server:
MONGO_URI
- The MongoDB connection string
Following are the environment variables used for client:
REACT_APP_BASE_URL
- The domain name (usually http://localhost:5000)
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/YourAmazingFeature
) - Commit your Changes (
git commit -m 'Add some YourAmazingFeature'
) - Push to the Branch (
git push origin feature/YourAmazingFeature
) - Open a Pull Request