Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukasbecvar/code-paste
Free webapp service for storing and sharing text and code snippets
https://github.com/lukasbecvar/code-paste
mysql paste pastebin php snippets symfony
Last synced: about 1 month ago
JSON representation
Free webapp service for storing and sharing text and code snippets
- Host: GitHub
- URL: https://github.com/lukasbecvar/code-paste
- Owner: lukasbecvar
- License: mit
- Created: 2024-09-10T12:05:33.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-30T08:01:24.000Z (about 2 months ago)
- Last Synced: 2024-09-30T08:37:44.979Z (about 2 months ago)
- Topics: mysql, paste, pastebin, php, snippets, symfony
- Language: PHP
- Homepage: https://paste.becvar.xyz/
- Size: 146 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# Code paste
Free webapp service for storing and sharing text and code snippets.![Paste view](.github/images/preview.png)
## Features
- Share text and code snippets
- Encryption of paste content
- SSL only mode
- Maintenance mode
- Syntax highlighting
- Copy to clipboard## Installation - Development
1. Clone the repository
2. Run with docker compose (scripts/docker-start-dev.sh)
3. Load testing database fixtures (scripts/load-fixtures.sh)## Installation - Production
1. Clone the repository
2. Install dependencies (scripts/install.sh)
3. Create database & migration (scripts/migrate.sh)
4. Configure apache config [apache-site.conf](./docker/configs/apache-site.conf)## Configuration
1. Create your own .env file with name .env.prod and change app env in main .env
2. Configure SSL_ONLY to false or true if you want to run the app on SSL with ssl traffic only
3. Configure MAINTENANCE_MODE to true or false if you want to enable maintenance mode
4. ENCRYPTION_MODE to true or false if you want to enable paste content encryption (key is APP_SECRET value in .env)
5. Configure DATABASE_DRIVER, DATABASE_HOST, DATABASE_PORT, DATABASE_NAME, DATABASE_USERNAME, DATABASE_PASSWORD## License
This software is licensed under the [MIT license](https://github.com/lukasbecvar/code-paste/blob/main/LICENSE).