Skip to content

kmingee/Pomf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pomf.se

Original development environment is Nginx + PHP5.5 + MySQL, but is confirmed to work with Apache 2.4 and newer PHP versions. Should work with any other PDO-compatible database.

Install

For the purposes of this guide, we won't cover setting up Nginx, PHP, MySQL, Node, or NPM. So we'll just assume you already have them all running well.

Nginx Config

PHP Config

Compiling

The assets are minified and combined using Grunt.

Assuming you already have Node and NPM working, compilation is easy:

$ npm install -g grunt-cli
$ git clone https://github.com/nokonoko/Pomf.git
$ cd Pomf
$ npm install
$ grunt

After this, the pomf site is now compressed and set up inside dist/.

Apache

If you are running Apache and want to compress your output when serving files, add to your .htaccess file:

AddOutputFilterByType DEFLATE text/html text/plain text/css application/javascript application/x-javascript application/json

Remember to enable deflate_module and filter_module modules in your Apache configuration file.

Configuring

The majority of settings are in static/includes/settings.inc.php. Read the comments in that file for more information.

For file size configuration, there is no server-side verification: we assume that PHP and Nginx provide ample protection in this department. There is, however, client-side configuration for max size, the data-max-size attribute on the file input in pages/upload_form.swig.

Contact

I can be contacted via [email protected] or twitter at @nekunekus.

About

Source code for Pomf.se

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 42.3%
  • CSS 36.8%
  • PHP 18.8%
  • HTML 2.1%