Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.
/ backend-old Public archive

Backend developed in Java and Golang, following a microservices architecture

License

Notifications You must be signed in to change notification settings

Dialosoft/backend-old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

300 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README DialoSoft Backend

Running the Application

How to Run a Spring Boot Application with Gradle

To run a Spring Boot application using Gradle, follow these steps:

  1. Open a terminal or command prompt.

  2. Navigate to the root directory of your Spring Boot project.

  3. (Optional) Compile the project: It's generally not necessary to compile separately as the run command will do this, but if you want to ensure everything compiles correctly first:

gradle compile

Or using the wrapper:

./gradlew compile
  1. Run the application using one of the following commands:

    a) Using the Gradle wrapper (recommended):

    • On Unix-based systems (Linux, macOS):
      ./gradlew bootRun
      
    • On Windows:
      gradlew.bat bootRun
      

    b) If Gradle is installed globally on your system:

     gradle bootRun
    
  2. Gradle will compile your project (if not done already), download necessary dependencies, and run the Spring Boot application.

  3. Wait for the application to start. You'll see logs in the console indicating that the application is running.

Build and Start Containers

docker-compose up --build

Add the -d flag to run containers in detached mode:

docker-compose up --build -d

Check the Status of Containers

Use the following command to check the status of running containers:

docker-compose ps

Access the Application

temporally: Once the containers are running, you can access the application through the exposed ports specified in docker-compose.yml.

For example, gateway is exposed on port 8080, you can access it at http://localhost:8080.

Stop and Remove Containers

To stop and remove all containers, networks, and volumes defined in docker-compose.yml, run:

docker-compose down

To also remove built images, add the --rmi all option:

docker-compose down --rmi all

About

Backend developed in Java and Golang, following a microservices architecture

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •