Sample project using Flask + MySQL + SQLAlchemy + PyTest + Docker
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
app
tests
.gitignore
Dockerfile
README.md
requirements.txt
test-requirements.txt

README.md

Full-stack Flask App

CircleCI

Sample project using Flask + MySQL + SQLAlchemy + PyTest + Docker.
Run tests is automated with CircleCI.

포스트 높은 품질의 Flask 웹 애플리케이션 설계하기를 작성하며 만든 레파지토리 입니다.

How to build & run

$ docker build -t my_flask_app .
$ docker run -p 8080:80 \
 	-e MYSQL_USER=<username> \
 	-e MYSQL_PASS=<password> \
 	-e MYSQL_DB=<database> \
 	--rm my_flask_app

How to run tests

$ PYTHONPATH=app \
	MYSQL_USER=test_user \
	MYSQL_PASS=<some-other-pass> \
	MYSQL_DB=<my_app_test_db> \
	pytest tests