Thanks to visit codestin.com
Credit goes to github.com

Skip to content

XyrusQ/it_hardware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

it_hardware

How to

  1. Install Docker (https://docs.docker.com/install/)
  2. Build Docker image: docker build -t it_hardware:latest .
  3. Run Docker container: docker run -p 5000:5000 it_hardware
  4. Open http://127.0.0.1:5000/
  5. You can also run localy without Docker (install uWSGI first): uwsgi --ini uwsgi.ini

Tested on following environment

  • Docker version 18.06.1-ce
  • Python 3.7.3
  • Ubuntu 18.04 (VirtualBox)
  • Git 2.17.1

Run tests locally

  1. Install requirements: pip install -r requirements.txt
  2. Run from main directory: pytest --cov=. --cov-report=term-missing tests/

Time

Day 1 (02.09)

  • Setup repository
  • Setup environment
  • Install flask and SQLalchemy
  • Prepare database models
  • uWSGI
  • Docker
  • Start API
  • Documentation, articles, SO...

Day 2 (03.09)

  • Finish API
  • Improve API documentation
  • Security: X-API-KEY header
  • Tests (models + api) + Pytest + test coverage
  • Commit!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages