Skip to content

Commit

Permalink
Added Flask+MongoDB app with Unit tests, Postman testcases, Keploy te…
Browse files Browse the repository at this point in the history
…sts 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>
  • Loading branch information
Swpn0neel committed Jun 14, 2024
1 parent 043e220 commit f0ae14a
Show file tree
Hide file tree
Showing 29 changed files with 1,690 additions and 1,095 deletions.
Binary file added flask-mongo/.coverage
Binary file not shown.
4 changes: 4 additions & 0 deletions flask-mongo/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[run]
omit =
/usr/*
sigterm = true
4 changes: 2 additions & 2 deletions flask-mongo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use the official Python image as the base image
FROM python:3.9
FROM python:3.10.12

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

# Expose the port that the Flask app will run on
EXPOSE 6000
EXPOSE 5000

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

0 comments on commit f0ae14a

Please sign in to comment.