Skip to content

Commit f0ae14a

Browse files
authored
Added Flask+MongoDB app with Unit tests, Postman testcases, Keploy tests and test coverage report (#19)
* Added Flask+Mongo app with unit tests, keploy tests and test coverage report Signed-off-by: Swapnoneel Saha <swapnoneelsaha111@gmail.com> * Added README for sample-mongo-flask-local app Signed-off-by: Swapnoneel Saha <swapnoneelsaha111@gmail.com> * restructured the folders Signed-off-by: Swapnoneel Saha <swapnoneelsaha111@gmail.com> * renamed two directories Signed-off-by: Swapnoneel Saha <swapnoneelsaha111@gmail.com> * merged the local and docker flask + mongo apps Signed-off-by: Swapnoneel Saha <swapnoneelsaha111@gmail.com> --------- Signed-off-by: Swapnoneel Saha <swapnoneelsaha111@gmail.com>
1 parent 043e220 commit f0ae14a

29 files changed

+1690
-1095
lines changed

flask-mongo/.coverage

52 KB
Binary file not shown.

flask-mongo/.coveragerc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[run]
2+
omit =
3+
/usr/*
4+
sigterm = true

flask-mongo/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use the official Python image as the base image
2-
FROM python:3.9
2+
FROM python:3.10.12
33

44
# Set the working directory within the container
55
WORKDIR /app
@@ -11,7 +11,7 @@ COPY . .
1111
RUN pip3 install -r requirements.txt
1212

1313
# Expose the port that the Flask app will run on
14-
EXPOSE 6000
14+
EXPOSE 5000
1515

1616
# Start the Flask application
1717
CMD ["python3", "app.py"]

0 commit comments

Comments
 (0)