Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.

sanderolin/IDATT2106-SystemDevelopment-Project-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

287 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Mat Backend README

Table of Contents

  1. Prerequisites
  2. Installation
  3. Running the Application
  4. Running the tests
  5. Swagger Documentation
  6. Docker Commands

1. Prerequisites

Before starting, make sure that the following tools and software are installed on your local machine:


2. Installation

Download the source code from the repository


3. Running the Application

  1. To run the application, make sure you have docker installed and running on your local machine
  2. Open a terminal and navigate to the root directory of the project
  3. Run the following command to build and run the docker containers: docker-compose up --build

This should start the application, if using docker desktop, you can check the status of the containers by clicking on the docker icon in the taskbar and selecting the containers tab.


4. Running the tests

To run the tests for the application, make sure the test-db image is running in your docker container. You will also need to have maven installed on your local machine and added to your path.

Open a terminal and navigate to the root directory of the project, from here you can type the command: mvn test -Plocal-tests


5. Swagger Documentation

To get an overview of the API endpoints, you can use the swagger documentation. To access this, make sure the application is running and open a browser and navigate to http://localhost:8080/swagger-ui/index.html


6. Docker Commands

Here is a list of commands you can use in docker to manage the containers. These commands should be run from the root directory of the project.

Build and run Docker containers (On first time running and after changes)

docker-compose up --build

Run Docker container (After first time running)

docker-compose up

Stop and remove Docker container

docker-compose down

Stop Docker container

docker-compose stop


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6