https://github.com/miska/sipas
Sipas - Simple Pastebin Service
https://github.com/miska/sipas
nette pastebin php sql
Last synced: 3 months ago
JSON representation
Sipas - Simple Pastebin Service
- Host: GitHub
- URL: https://github.com/miska/sipas
- Owner: miska
- License: agpl-3.0
- Created: 2020-03-18T22:32:36.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-15T19:58:54.000Z (over 4 years ago)
- Last Synced: 2025-02-03T19:11:55.081Z (4 months ago)
- Topics: nette, pastebin, php, sql
- Language: PHP
- Homepage:
- Size: 324 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.asciidoc
- Changelog: NEWS
- License: LICENSE
Awesome Lists containing this project
README
Sipas - Simple Pastebin Service
-------------------------------This projects goal is to be a simple pastebin that depends just on basic LAMP
stack so it is easy to deploy.Giving it a try
~~~~~~~~~~~~~~~It requires PHP (tested on 7.X) and it is written using Nette framework and
GeSHi for syntax highlighting. All dependencies (except from a database
bindings of your choice) are wriitten in `composer.json` so you can install
those simple by calling `composer update` in your checkout directory.What you need apart from dependencies is some database. You should configure
one in `app/config/local.neon` file. For example like this:--------------------------------------------------------------------------------
database:
dsn: 'sqlite:%appDir%/../datat/pastes.sqlite3'
--------------------------------------------------------------------------------To fill database, use files from `doc/sql/schema` directory in the alphabetical
sequence. If you need some sample data, you can use files from `doc/sql/data`.Configuration
~~~~~~~~~~~~~You can change the default identity to get some basic "branding" by adding the
following lines into `app/config/local.neon` file.--------------------------------------------------------------------------------
constants:
TITLE: 'My Super Cool Pastebin'
--------------------------------------------------------------------------------You also want to put into your cron periodic fetch from https://your_URL/cron
to automatically delete old pastes.