Skip to content

Shakkael/hello_world_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazing Hello World App

  1. Do not forget to use the virtual python env:

    python3 -m venv .venv
    source .venv/bin/activate
  2. Instal the dependencies:

    pip install -r requirements.txt;
    pip install -r test_requirements.txt;
  3. Check whether the app works, start it, and use curl to call the app web api:

    PYTHONPATH=. FLASK_APP=hello_world flask run
    curl 127.0.0.1:5000
    curl 127.0.0.1:5000/outputs
    curl '127.0.0.1:5000/?output=json'
  4. What is the code without tests:

    PYTHONPATH=. py.test  --verbose -s
  5. Let's lint our code:

    flake8 hello_world test main.py
  6. Place for your notes:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages