/lepv

web backend and frontend for LEP

Primary LanguagePython

LEP

Preferred development environment

  • Windows/Mac OX/Linux, either works
  • IDE: Pycharm Community

Technology Keywords

  • Git

  • Python 3.6

  • Flask web framework

  • Docker

  • Javascript

  • Restful API

  • Web charts

  • Software Tools

    1. Python
    2. Docker install faster click here
    3. Flask
      pip install Flask (pip install maybe faster for append [ -i http://pypi.douban.com/simple ] or config /etc/pip.conf)
  • Start

    1. Run on VM
    $ git clone https://github.com/linuxep/lepv.git
    $ export PYTHONPATH=$PYTHONPATH:$PWD/lepv
    $ cd lepv/app
    $ pip install -r requirements.txt
    $ python run.py
    1. Run in Docker
    $ ./buildImage.sh  (Outside Chinese mainland network: ./buildImage.sh us)
    $ ./runContainer.sh
    1. Open browser 127.0.0.1:8889

当你把LEPD和LEPV运行在同一台Linux主机的时候,在浏览器输入的监控地址不能是127.0.0.1或者localhost,而应该是Linux主机的IP地址。否则会出现"cannot reach the server"的错误。

Setup aliyun mirror and install docker

Access https://cr.console.aliyun.com/#/accelerator and follow steps there

Verify docker installation

$ docker run hello-world