Fast and lightweight framework for building web applications using power of Nginx and PostgresSQL
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
src
tests
.gitignore
AUTHORS
CMakeLists.txt
LICENSE
Makefile
README.md
circle.yml
cmake.sh

README.md

Build

Dependencies for build

  • cmake 3.2+
  • g++ 4.7+
  • zlibc
  • libpcre3 (for nginx rewrite module)
  • openssl (for nginx ssl support)
  • libpq
  • libboost (only for tests)
  • hg (mercurial client for jsmn - lightweight json parser repo clone)

Dependencies for testing

  • postgresql 9.5 with superuser rights for current user
  • jq - command line json parser is required for testing
make debug
make test

Install

make deb
sudo ./deploy/c2h5oh-nginx_0.0.0_amd64.sh
sudo vi /etc/c2h5oh/c2h5oh_nginx.conf
sudo service c2h5oh_nginx restart

Usage

See tests/web_test.pgsql for sample usage

This test script includes get/set cookie, redirect, custom headers and synthetic /user/login/, /user/logout/, /user/auth/ samples