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: 3 months 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 (10 months ago)
- Default Branch: main
- Last Pushed: 2025-02-06T07:43:27.000Z (5 months ago)
- Last Synced: 2025-02-06T08:34:36.125Z (5 months ago)
- Topics: mysql, paste, pastebin, php, snippets, symfony
- Language: PHP
- Homepage: https://paste.becvar.xyz/
- Size: 253 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
Self-hosted solution for sharing text and code snippets.## Preview
## Features
- Share text and code snippets
- Paste content encryption
- SSL only mode
- Maintenance mode
- Syntax highlighting## 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 this repository
2. Install dependencies ``npm install && composer install``
3. Build assets ``npm run build``
4. Create database ``php bin/console doctrine:database:create --if-not-exists``
5. Migrate database ``php bin/console doctrine:migrations:migrate --no-interaction``
6. Configure website host [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 false or true if you want allow only SSL traffic
3. Configure MAINTENANCE_MODE true or false if you want to enable maintenance mode
4. ENCRYPTION_MODE 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## Requirements
- Apache or Nginx web server with PHP support
- NodeJS with npm
- Composer
- PHP 8.4
- MySQL## License
This software is licensed under the [MIT license](LICENSE).