Code Monkey home page Code Monkey logo

gitter-badger / poradnia Goto Github PK

View Code? Open in Web Editor NEW

This project forked from watchdogpolska/poradnia

0.0 1.0 0.0 41.52 MB

Oprogramowanie ma na celu usprawnienie obsługi klientów Sieci Obywatelskiej Watchdog Polska oraz zwiększenie efektywności wsparcia ze strony praktykantów i ekspertów zewnętrznych. Dokonywana ma być także podstawowa analiza statystyczna pracy.

Home Page: http://porady.siecobywatelska.pl/

License: MIT License

JavaScript 44.21% Python 25.81% HTML 6.94% CSS 23.04%

poradnia's Introduction

poradnia

Code Climate Requirements Status GitHub issues counter

License

'Stories in High' Code issues https://coveralls.io/repos/watchdogpolska/poradnia/badge.svg?branch=master&service=github

Settings

poradnia relies extensively on environment settings which will not work with Apache/mod_wsgi setups. It has been deployed successfully with both Gunicorn/Nginx and even uWSGI/Nginx.

Getting up and running

The steps below will get you up and running with a local development environment. We assume you have the following installed First make sure to install all requires OS-level libraries and application (dependencies):

$ sudo apt-get install python2.7 mariadb-server git libmariadbclient-dev virtualenv python-dev libffi-dev libssl-dev libjpeg-dev libpng12-dev libxml2-dev libxslt1-dev python-dev

Next to create and activate a virtualenv_:

$ virtualenv env
$ source env/bin/activate

.. _virtualenv: http://docs.python-guide.org/en/latest/dev/virtualenvs/

Next to open a terminal at the project root and install the requirements for local development:

$ pip install pip wheel -U
$ pip install -r requirements/local.txt

Next to create MySQL database:

$ echo "CREATE DATABASE poradnia CHARACTER SET utf8 COLLATE utf8_polish_ci;" | mysql

Next to set up enviroment variables:

$ export DJANGO_SETTINGS_MODULE="config.local"
$ export DATABASE_URL="mysql://user:pass@localhost/poradnia"

Next to push migrations into database:

$ python poradnia/manage.py migrate

You can now run the usual Django runserver command:

$ python poradnia/manage.py runserver

To run tests use:

$ function run_test(){ DATABASE_URL="sqlite://" DJANGO_SETTINGS_MODULE='config.tests' python manage.py test $@ -v2}
$ pip install -r requirements/test.txt
$ run_test

Live reloading and Sass CSS compilation

If you'd like to take advantage of live reloading and Sass / Compass CSS compilation you can do so with the included Gulpfile task.

Make sure that nodejs_ is installed. Then in the project root run:

.. note:: TODO (see issue #207)

It's time to write the code!!!

Deployment

It is possible to deploy to Heroku or to your own server by using Dokku, an open source Heroku clone. The recomend way is using Virtual Private Server with Ubuntu Server and Nginx.

poradnia's People

Contributors

ad-m avatar dzakus avatar mik-laj avatar requires avatar rwakulszowa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.