limgit / opdss

OPDSS Repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OPDSS: Open Platform Digital Signage System

High-quality digital signage generation system that can be customized by user

Development

  • Language: Python 3.6.1
  • Other requirements: Specified in requirements.txt

Conventions

Commit message convention

  • Commit message should have no problem when it is interpreted as "This commit will <commit_msg>"
    • In other words, always start with verb in infinitive form (e.g. start with "Update", not "Updates")
  • Always capitalize the commit message
  • Commit message must be shorter than 50 characters
  • It is recommended to write detailed commit description for every commit

Code convention

  • TODO: Styling tool or static analyzer should be applied

Other conventions

  • Update requirements.txt whenever you install the new package with pip installer
    • Always include version information (i.e. Flask==0.12.2)

Development Environment Setting

Using pyenv & Ubuntu

  • Tested in Ubuntu 16.04.2 LTS
  1. Install dependencies
~$ sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev \
> libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev
~$ sudo apt-get install git #If git is not installed
  1. Install pyenv using pyenv-installer
~$ curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash
  1. If warning occurs, add presented commands in ~/.bashrc and restart the shell
  2. Update pyenv
~$ pyenv update
  1. Install Python 3.6.1 in pyenv
~$ pyenv install 3.6.1
  1. Create virtual environment for development with Python 3.6.1
~$ pyenv virtualenv 3.6.1 venv
  1. Activate virtual environment
~$ pyenv activate venv
  1. Clone the repository and move the directory into it
~$ git clone https://github.com/limgit/guess
#If credential is required, enter it.
~$ cd guess
  1. Install the requirements
~/guess$ pip install -r requirements.txt
  1. PROFIT!

Everytime you work on the repository, activate virtualenv with $ pyenv activate venv.

To deactivate, $ pyenv deactivate is used.

About

OPDSS Repo


Languages

Language:Python 96.1%Language:HTML 3.2%Language:CSS 0.6%Language:JavaScript 0.1%