Skip to content

Commit

Permalink
Merge branch 'develop' into 'feature/history'
Browse files Browse the repository at this point in the history
# Conflicts:
#   requirements.txt
  • Loading branch information
jemshid committed May 17, 2021
2 parents d80ccc8 + 6f1efe2 commit 8d77593
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,20 @@ gemnasium-python-dependency_scanning:

stages:
- test
- deploy

test:
stage: test
script:
- apt-get update -qy
- apt-get install -y python3-dev python3-pip build-essential sqlite3
- pip3 install -r requirements.txt

deployToDev:
stage: deploy
script:
- deployToDev
tags:
- cp1
only:
- develop
26 changes: 21 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,36 @@

The project is a web based implementation of couch potato.

## Requirements
- Python 3
- Virtualenv
- GCC
- Git
- MongoDB
- SQLite

### Ubuntu 18+
```bash
sudo apt-get update
sudo apt-get install python3 python3-venv python3-dev build-essential git mongodb libmysqlclient-dev -y
```

## Installation

```bash
```bash
cd python-cp-gui
python3 -m venv env
source env/bin/activate
pip3 install -r requirements.txt
# Configure config-bos-mint.yaml
cd couchpotato
cp example-config-bos-mint.yaml config-bos-mint.yaml
```



### First Run

Modify config-bos-mint.yaml

```bash
cd python-cp-gui
source env/bin/activate
cd couchpotato/scripts/
./install.sh
Expand All @@ -26,7 +40,9 @@ cd couchpotato/scripts/
This operation will clear all the existing users

## Usage

```bash
cd python-cp-gui
source env/bin/activate
cd couchpotato
python3 manage.py runserver 0.0.0.0:9010
Expand Down
2 changes: 1 addition & 1 deletion __version__
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.0
0.3.0
37 changes: 37 additions & 0 deletions couchpotato/example-config-bos-mint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
debug: FALSE
project_name: PYTHON COUCH POTATO
project_sub_name: The Python Couch Potato project
secret_key: THINK CLOCK SMOG FLAG SMACK TINKER FLUNK # enter any random string
advanced_features: True

sql_database: "sqlite:///{cwd}/bookied-local.db"

connection:
use: hercules # enter your desired chain

hercules:
node:
- wss://hercules.peerplays.download/api
nobroadcast: False
num_retries: 1

allowed_assets:
- BTFUN
- PPY
- TEST
- BTF

potatoNames:
- cpx
- cpy

bosApis:
- http://hercules.peerplays.download:8010/trigger

token:
- 1111111

token_telegram: ''

telegram_chat_ids:
- ''
9 changes: 9 additions & 0 deletions couchpotato/uwsgi.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[uwsgi]
module = couchpotato.wsgi:application
master = true
callable = application
processes = 5
socket = /tmp/cp.sock
chmod-socket = 666
vacuum = true
die-on-term = true

0 comments on commit 8d77593

Please sign in to comment.