sef-global / scholarx-backend

This is the backend of the ScholarX
MIT License
11 stars 38 forks source link

Dockerize the Application #85

Closed mayura-andrew closed 9 months ago

mayura-andrew commented 9 months ago

Purpose

The purpose of this PR is to fix https://github.com/sef-global/scholarx-backend/issues/84

Goals

The main goal is to create a Dockerfile and docker-compose.yml file that will allow the backend to be built and run in a Docker container. This will ensure that all developers are working in the same environment, reducing the "it works on my machine" problem.

Approach

We will create a Dockerfile that describes the environment needed to run the backend, including the base image, necessary dependencies, and how to run the application. We will also create a docker-compose.yml file to manage the services our application needs, such as a database.

Screenshots

Screenshots are not applicable for this PR as it doesn't involve any UI changes.

Checklist

Related PRs

No related PRs.

Test environment

This feature was tested on Docker Desktop 4.26.1 and, build on Fedora Linux 39 (KDE Plasma) x86_64

Learning During the implementation of this feature, I learned about Docker and its benefits in creating consistent development environments. I also learned how to use Docker Compose to manage multi-container applications.

anjula-sack commented 9 months ago

For the PR description can you use the following format @mayura-andrew

https://github.com/sef-global/scholarx-backend/blob/main/.github/pull_request_template.md

anjula-sack commented 9 months ago

@mayura-andrew The purpose should be like the issue number. So the issue will be closed automatically when the PR is merged.

The purpose of this PR is to fix #84