SHAO Pastebin is a web app for storing and sharing any text online. This kind of websites are mainly used by programmers to share their code snippets, but anyone is welcome to paste any text.
- Fast
- Simple and lightweight
- Splitted frontend and backend
- Support Markdown
- Free and easy to deploy
Don't you want to deploy on your own? Just visit our website to use our public service!
- A SendGrid account (free account is OK)
- PHP version 7.0 or greater
- MySQL version 5.6 or greater (or any other compatible database)
- Register at SendGrid and get the key for email sending
- Create a MySQL compatible database
- Import
/backend/pastebin.sql
to the database created - Modify configurations in
/backend/config.php
according to comments in the file - Upload all files except
/backend/pastebin.sql
in/backend/
folder to your server
- A SHAO-Pastebin server (you can use our server
https://api.paste.shao.fun
orhttps://api.pastebin.594144.xyz
to test) - A server to hold client program (you can run locally) or deployment services like Netlify and GitHub Pages
- For running locally, Node.js >= 12.x and npm >= 6.x is recommended
You can run it locally by typing npm test
. Then you can visit localhost:8080 to have a glance.
Meanwhile, you can set up a traditional web server like nginx and Caddy. And upload all files in root folder except /backend/
.
We RECOMMEND deploying with GitHub Pages, for the best experience and the most reliability:
- Fork this repository
- Switch to branch
pages
- Modify the backend URL configuration in
/config.json
- Stash and commit the changes
- Set up GitHub Pages:
- Visit your forked repository on GitHub
- Go to
Settings
->Pages
- Select source branch
pages
and folder/ (root)
and save - You can also add your custom domain
SHAO Pastebin is released under Apache-2.0 License. See the LICENSE file for more details