An open API service indexing awesome lists of open source software.

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

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.