posting
quadrismegistus 4 years ago
parent d5dc3ff5d7
commit eae436ad30

@ -81,22 +81,25 @@ See [here](https://www.dropbox.com/s/8r8gqgfswojmtwd/komrade-terminal-preview--2
## Install
## Usage
### With installer
### Install
One line:
```
python3 -c "$(curl -s https://raw.githubusercontent.com/Komrade/Komrade/master/script/install)"
bash <(curl -s https://raw.githubusercontent.com/Komrade/Komrade/master/script/install)
```
If you don't have python3 installed, I recommend installing [miniconda]():
This will install Komrade to your home folder, with a folder called "code" inside it for the repository.
```
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
bash ~/miniconda.sh -b -p $HOME/miniconda
```
Let us know if that doesn't work!
### Use
Once installed above, simply run:
`
### From source

@ -0,0 +1,17 @@
#!/bin/bash
##
# Run the mobile app
##
deactivate
SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
path=`realpath "$SCRIPTPATH/../komrade/app/main.py"`
pathvenv=`realpath "$SCRIPTPATH/../venv/bin/activate"`
source $pathvenv
python "$path"
deactivate

@ -2,9 +2,14 @@
# Run the command line app
##
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
deactivate
SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
path=`realpath "$SCRIPTPATH/../komrade/cli/cli.py"`
pathvenv=`realpath "$SCRIPTPATH/../venv/bin/activate"`
source $pathvenv
python "$path"
python "$path"
deactivate

@ -2,7 +2,10 @@
# Run THE OPERATOR
##
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
deactivate
SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
path=`realpath "$SCRIPTPATH/../komrade/backend/switchboard.py"`
pathvenv=`realpath "$SCRIPTPATH/../venv/bin/activate"`
@ -13,3 +16,4 @@ cmd="python $path 8080"
# do forever
while true; do $cmd && break; done
deactivate

Loading…
Cancel
Save