Skip to content

Flask-Apps/TDD-Code-Evaluation

Repository files navigation

TDD

example workflow

Important Terms

Code coverage

  • it is the process of finding areas of our code that aren't exercised by tests.
  • this however doesn't measure the overall effectiveness of the test suite.

Flask Debug Toolbar

  • This is a Flask extension that helps in debugging our applications.
  • It adds a debugging toolbar into the view which provides info on HTTP headers, requests variables, configuration settings, and the no. of SQLAlchemy queries it took to render the view.
  • This information can be used to find bottlenecks in the rendering of the view.

things to remember

  • change the permission of the
    • entrypoint.sh on host chmod +x services/users/entrypoint.sh
    • chmod +x services/users/entrypoint-prod.sh
  • if users relation doesn't exist pop up then run the recreate-db command

Getting docker-machine

Create a new host on ec2

  • docker-machine create --driver amazonec2 \ --amazonec2-instace-type "t2.micro" \ --amazonec2-region "ap-south-1" \ --amazonec2-open-port 5001 \ tdd-prod

RUN THESE

  • run
    • docker-compose build
    • docker-compose up
    • make recreate
    • enter into the users-db and connect \c users_dev and check \dt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published