diff --git a/.github/workflows/ms5yml b/.github/workflows/ms5yml new file mode 100644 index 0000000..d352c7f --- /dev/null +++ b/.github/workflows/ms5yml @@ -0,0 +1,59 @@ +name: ms5API Testing + +on: + push: #we want only the milstone5 + branches: [Milestone-5_feature_branch] + pull_request: + branches: [Milestone-5_feature_branch] + +jobs: + api-testing: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python 3 + uses: actions/setup-python@v2 + with: + python-version: '3.8' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flask flask_cors flasgger pylint pytest + + # Run pylint + - name: Run pylint + run: | + pylint ./backend/*.py + continue-on-error: false # Set to true to see warnings + + #docker image build + - name: Build API Docker Image + run: | + docker build -t api-image -f Dockerfile . + + #run docker container + - name: Start API Container + run: | + docker run -d -p 5000:5000 --name api-container api-image + + #running main.py + - name: Start API Service + run: | + docker exec api-container python main.py + + #test_main.py + - name: Run test_main.py + run: | + docker exec api-container pytest test_main.py --maxfail=1 --disable-warnings + + #cut the docker + - name: Stop and Remove API Container + run: | + docker stop api-container + docker rm api-container + + diff --git a/Docs/API Contracts.pdf b/Docs/API Contracts.pdf new file mode 100644 index 0000000..c8c97f5 Binary files /dev/null and b/Docs/API Contracts.pdf differ diff --git a/Docs/Group 51 - Milestone 2.docx b/Docs/Group 51 - Milestone 2.docx new file mode 100644 index 0000000..0ba1864 Binary files /dev/null and b/Docs/Group 51 - Milestone 2.docx differ diff --git a/Docs/Group 51 - Milestone 3.docx b/Docs/Group 51 - Milestone 3.docx new file mode 100644 index 0000000..dead8ea Binary files /dev/null and b/Docs/Group 51 - Milestone 3.docx differ diff --git a/Docs/Milestone4/er-pet-adoption.drawio b/Docs/Milestone4/er-pet-adoption.drawio new file mode 100644 index 0000000..aca0d71 --- /dev/null +++ b/Docs/Milestone4/er-pet-adoption.drawio @@ -0,0 +1,461 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Docs/Milestone4/hld-01-.drawio b/Docs/Milestone4/hld-01-.drawio new file mode 100644 index 0000000..e7cfa46 --- /dev/null +++ b/Docs/Milestone4/hld-01-.drawio @@ -0,0 +1,210 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Docs/Milestone4/sequence-01-Pet Select.drawio b/Docs/Milestone4/sequence-01-Pet Select.drawio new file mode 100644 index 0000000..134f1e2 --- /dev/null +++ b/Docs/Milestone4/sequence-01-Pet Select.drawio @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Docs/Milestone4/sequence-02-Accounts.drawio b/Docs/Milestone4/sequence-02-Accounts.drawio new file mode 100644 index 0000000..20eda45 --- /dev/null +++ b/Docs/Milestone4/sequence-02-Accounts.drawio @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Docs/Milestone4/sequence-03-Favorites.drawio b/Docs/Milestone4/sequence-03-Favorites.drawio new file mode 100644 index 0000000..f6ed6fc --- /dev/null +++ b/Docs/Milestone4/sequence-03-Favorites.drawio @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Docs/Milestone4/sequence-04-User Quiz.drawio b/Docs/Milestone4/sequence-04-User Quiz.drawio new file mode 100644 index 0000000..ba41ea4 --- /dev/null +++ b/Docs/Milestone4/sequence-04-User Quiz.drawio @@ -0,0 +1,169 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Docs/Milestone4/usecase-pet-adoption.drawio b/Docs/Milestone4/usecase-pet-adoption.drawio new file mode 100644 index 0000000..bcfc28e --- /dev/null +++ b/Docs/Milestone4/usecase-pet-adoption.drawio @@ -0,0 +1,208 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 0aaa80e..7a7c605 100644 Binary files a/README.md and b/README.md differ