Skip to content

Latest commit

 

History

History
43 lines (39 loc) · 1.01 KB

readme.md

File metadata and controls

43 lines (39 loc) · 1.01 KB

Steps to install:

  • Create ./app/secret.py, that must contain
app_secret_key="test"
DB_link = "Atlas URL"
DB_name = "test"
  • Run in CMD/Terminal pip install virtualenv
  • Create virtualenv with:
    • Windows -> virtualenv venv --python=python
    • Linux ->virtualenv venv --python=python3
  • Activate virtualenv:
    • Windows:

      1. cd .\venv\Scripts\
      2. .\activate

      If you see exception:

      1. Run as administrator PowerShell
      2. Run Set-ExecutionPolicy RemoteSigned
      3. Type A
      4. Try again
    • Linux:

      1. source env/bin/activate
  • Run pip install -r requirements.txt
  • Run:
    • Windows -> python app/main.py
    • Linux ->python3 app/main.py
  • Open http://localhost:5000/

Run with Docker:

  • Install Docker
  • Run docker build -t server . -f server.dockerfile
  • Run docker run -d -p 5000:5000 server
  • Open http://localhost:5000/

Run with Docker-compose:

  • Install Docker
  • Run docker-compose up
  • Open http://localhost:5000/