Coder Social home page Coder Social logo

cenllv / open-shot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hasadna/open-shot

0.0 1.0 0.0 4.27 MB

A simple, open question and answer site. Shot being an hebrew acronym for Q&A.

Home Page: http://localshot.org.il

License: BSD 3-Clause "New" or "Revised" License

Shell 0.53% Python 82.18% HTML 9.98% CSS 5.69% JavaScript 1.48% Gherkin 0.14%

open-shot's Introduction

open-shot - Open Knesset Question & Answers

This repository holds the code for localshot, a Sadna project to help voters. The code contains a Django project for a specific municipality and allows the citizens to ask and up-vote questions and for candidates to answer.

You are invited to fork the code, improve the design and send a pull request

Quick Start - Linux

$ sudo apt-get install git-core mercurial python2.7-dev python-setuptools libjpeg-dev
$ sudo easy_install pip
$ sudo pip install virtualenv
$ git clone https://github.com/hasadna/open-shot.git
$ cd open-shot
$ virtualenv -p /usr/bin/python2.7 ENV
$ source ENV/bin/activate
$ pip install -r requirements.txt
$ python manage.py test
$ python manage.py syncdb --migrate --noinput
$ python manage.py runserver

You should now be able to access the site at http://localhost:8000

If you experience problems with avatars, it could be your libjpeg is missing. Try to use PNG, and checkout this answer.

MS Windows

Python setup:

  1. Install the latest Python 2.xx` that matching your architecture (32 or 64 bit).
  2. Download 'distribute` for your architecture and install it.
  3. Open command windows and:

    cd c:\Python27\Scripts
    easy_install pip
    pip install virtualenv

Git setup:

  1. Log in or sign in to github
  2. Go to the 'Open-Shot' project and Fork it
  3. Download and install GitHub for Windows.
  4. Run the GitHub program (you should have an icon on the desktop).
  5. Sign in with your username and password.
  6. Run Git Shell (should have an icon on desktop).
  7. In the Git shell create the virtualenv as follows:

    cd C:\
    C:\Python27\Scripts\virtualenv --distribute --system-site-packages hasadna
    cd hasadna
    Scripts\activate
  8. Clone the project:

    git clone [email protected]:your-name/open-shot.git oshot
  9. Sync your local env with the project requirements (this will take some times so have a cup of coffee and relax):

    pip install -r oshot\requirements.txt 

Troubleshooting:

  • If "pip install" worked -- then most of the hard work is behind you.
  • If "pip install" failed with error message 'hg was not found':

    install 'Mercurial' from http://mercurial.selenic.com/wiki/Download
    and then
    run 'pip install -r oshot\requirements.txt' again
  • If you have another problem, post your error and we will help you fix it.

Sync the database:

cd oshot
python manage.py syncdb --migrate --noinput

Activate the local web server:

python manage.py runserver

open-shot's People

Contributors

daonb avatar tbrisker avatar danielhers avatar ozomer avatar amirnissim avatar yaninelbi avatar mkamensky avatar fyuval avatar suberri avatar neara avatar ricardinho avatar shaib avatar taleinat avatar danielbraun avatar ofir-purple avatar yarond avatar lotan1 avatar moshe742 avatar iritmalka avatar valorien avatar

Watchers

Cen 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.