Closed Narennnnn closed 1 month ago
This Pull request covers the tasks mentioned in application.md:
GET /principal/assignments
GET /principal/teachers
POST /principal/assignments/grade
Tests for grading APIs https://github.com/Narennnnn/fyle-interview-intern-backend/tree/feat/FyleBackend/tests
Bug Fixes: Feat: New Feature Fix: To fix the issue https://github.com/Narennnnn/fyle-interview-intern-backend/blob/feat/FyleBackend/core/models/assignments.py
All test cases passed
Test Coverage Report
SQL Queries https://github.com/Narennnnn/fyle-interview-intern-backend/tree/feat/FyleBackend/tests/SQL
Dockerize the application 7.1 Make sure you have Docker installed on your system.Create the Dockerfile and docker-compose.yml files in the root directory of your Flask application.
# Dockerfile FROM python:3.10 ENV FLASK_APP=core/server.py ENV FLASK_RUN_HOST=0.0.0.0 WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . EXPOSE 5000 CMD ["bash", "run.sh"]
# docker-compose.yml version: '3' services: web: build: . ports: - "5000:5000" volumes: - .:/app
7.2 Run the following command to build the Docker image (use sudo if admin privileges are needed):
docker-compose build
7.3 Once the build is complete, start the Docker container using the following command:
docker-compose up
7.4 Your Flask application should now be running inside a Docker container. Example to access it:
http://localhost:5000
7.5 Useful Commands
docker-compose down
docker ps
docker-compose logs
This Pull request covers the tasks mentioned in application.md:
GET /principal/assignments
GET /principal/teachers
POST /principal/assignments/grade
Tests for grading APIs https://github.com/Narennnnn/fyle-interview-intern-backend/tree/feat/FyleBackend/tests
Bug Fixes: Feat: New Feature Fix: To fix the issue https://github.com/Narennnnn/fyle-interview-intern-backend/blob/feat/FyleBackend/core/models/assignments.py
All test cases passed
Test Coverage Report
SQL Queries https://github.com/Narennnnn/fyle-interview-intern-backend/tree/feat/FyleBackend/tests/SQL
Dockerize the application 7.1 Make sure you have Docker installed on your system.Create the Dockerfile and docker-compose.yml files in the root directory of your Flask application.
7.2 Run the following command to build the Docker image (use sudo if admin privileges are needed):
7.3 Once the build is complete, start the Docker container using the following command:
7.4 Your Flask application should now be running inside a Docker container. Example to access it:
7.5 Useful Commands