Coder Social home page Coder Social logo

finance_ua's Introduction

FIN UA

Some screens

lists of orders

lists of orders

some charts

some statistics

installation

manual

  1. python3.5 setup.py sdist to prepare dist package from sources

  2. install on machine

    • python3.5

    sudo add-apt-repository ppa:fkrull/deadsnakes

    sudo apt-get update

    sudo apt-get install python3.5

    sudo apt-get install python3.5-dev

    • install mongodb sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927

    echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list

    sudo apt-get update

    sudo apt-get install -y mongodb-org

    • to start / stop mongod - use upstart

      /etc/init.d/mongod

    • create virtual environment

    wget https://bootstrap.pypa.io/get-pip.py

    python3.5 -m venv --without-pip flask - create folder 'flask' with virtualenv

    cd flask; source bin/activate - activate venv

    python3.5 get-pip.py - install pip in invironment

    • install application

    pip install curs-XX.XX.XX.XXXXX.tar.gz it compiler uwsgi and pycrypto from sources (python3.5-dev)

    • start mongod

      sudo /etc/init.d/mongod start

      sudo service mongod start

    • configure nginx and uwsgi

      • prety working config copied by pip install in .curs folder. need to move in /etc/nginx/nginx.conf
      • copy into /var/www/curs/static/ static files from app/static
      • working uwsgi config in .curs folder, too. installed bin/uwsgi_start.sh will find it.
    • start nginx and uwsgi

      • sudo service nginx start
      • bin/uwsgi_start.sh

ansible

Notes for Vault

file .vault_pass allows read password from env put password into env export VAULT_PASSWORD=<password>

view / edit vars ansible-vault view group_vars/ec2/vault.yaml

tags

install / re-install only spiders service ansible-playbook -t spiders curs_roles.yaml

test micro-services

http -j POST localhost:9080/command secret=<secret> responce:='["ok", "nok"]' update=lists

finance_ua's People

Contributors

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