Open prabs222 opened 2 months ago
Got a test coverage of 97% and all tests are passing.
To build and run the Flask application using Docker, follow these steps:
Clone this repository to your local machine.
cd fyle-interview-intern-backend
docker build -t flask-app .
docker run -p 7755:7755 flask-app
This will start the Flask application, and it will be accessible at http://localhost:7755.
To build and run the Flask application using Docker Compose, follow these steps:
docker-compose up
This will build the Docker image and start the Flask application, accessible at http://localhost:7755.
http://localhost:7755
docker-compose down
This will stop and remove the containers, networks, and volumes created by docker-compose up.
Completed the backend assignment
Tasks checklist
Tests completed
Got a test coverage of 97% and all tests are passing.
Docker Guide
Building and running the application with Docker
To build and run the Flask application using Docker, follow these steps:
Clone this repository to your local machine.
Navigate to the project directory:
cd fyle-interview-intern-backend
Build the Docker image:
docker build -t flask-app .
Run the Docker container:
docker run -p 7755:7755 flask-app
This will start the Flask application, and it will be accessible at http://localhost:7755.
Building and Running with Docker Compose
To build and run the Flask application using Docker Compose, follow these steps:
Clone this repository to your local machine.
Navigate to the project directory:
cd fyle-interview-intern-backend
Run the Docker Compose command:
docker-compose up
This will build the Docker image and start the Flask application, accessible at
http://localhost:7755
.To stop the Docker Compose services, press Ctrl + C, and then run:
docker-compose down
This will stop and remove the containers, networks, and volumes created by docker-compose up.