LittleTechBookClub / swarm-rest-api

This is the Swarm app backend REST API, a Spring Web application.
0 stars 0 forks source link

docker-backend #1

Closed mariorecinos closed 5 months ago

mariorecinos commented 5 months ago

Issue

Objectives

Description We aim to streamline the setup process for our backend development environment and ensure consistency across all contributors' devices. By utilizing Docker containers, we can encapsulate our development environment and its dependencies, allowing contributors to quickly onboard and start developing, regardless of their local machine setup.

Acceptance Criteria

  1. Dockerfile Creation: A Dockerfile must be created specifying all the necessary dependencies and configurations required to run the backend application.

  2. Docker-Compose Configuration: A docker-compose.yml file should be provided to manage the application as a service and include all required dependencies.

  3. Simplicity in Commands: Contributors should be able to get the backend running by executing a simple docker-compose up command. This process should handle the building of the Docker image and the initialization of the container(s).

  4. Documentation: Include detailed instructions in the repository's README file, explaining how to use Docker and Docker Compose to set up the development environment. This documentation should cater to contributors who may not be familiar with Docker.

  5. Cross-Device Compatibility: The Docker setup must be tested and confirmed to work on Windows, macOS, and Linux, ensuring a consistent development environment across different operating systems.

How to Test

  1. Environment Setup: Follow the instructions added to the README to set up the Docker environment using docker-compose up and to shutdown the Docker Environment using docker-compose down.

  2. Verify Running Application:

    • Ensure that the backend application is accessible and running as expected. This can be tested by hitting a known endpoint using a tool like curl or Postman and verifying the response.
  3. Dependency Check:

  1. Cross-Platform Verification: