Skip to content
Snippets Groups Projects
Select Git revision
  • group-member-bug
  • main default
  • test/grouputil-stastisticsutil
  • 256-fix-a-little-bug-creating-a-group
  • bugfix/get-fridge-amount-format
  • bugfix/216-group-shoppinglist-fridge-associations
  • bugfix/223-fix-change-group
  • 221-improve-amount-and-unit-algortihm
  • 220-add-endpoint-to-delete-product-from-fridge-and-saving-waste
  • 217-add-algotihm-to-find-relevant-statistics
  • 201-add-endpoit-to-delete-a-product-from-fridge
  • 181-fridgecontroller-post-product
  • feature/178-add-expirationdate-to-fridge-product
  • 148-endpoint-for-waste-categories
  • 164-create-endpoint-to-change-authority-of-person-in-group
  • feature/addPersonToGroup
  • bugfix/fridge-controller-delete-mapping
  • bug-fixing/changeConnectionUserGroup
18 results

backend

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Anders Austlid authored
    1a34c35d
    History

    backend

    Name

    SmartMat API

    Description

    The API backend of smartmat.app. Smartmat helps you avoid waste and gives full control of you recipes, and items in your fridge.

    "SmartMat, your smart food companion"

    Links

    Getting started

    1. Clone SmartMat using:

    For SSH:

    `git clone git@gitlab.stud.idi.ntnu.no:idatt2106-v23-03/backend.git`

    For HTTPS:

    `git clone https://gitlab.stud.idi.ntnu.no/idatt2106-v23-03/backend.git`
    1. Change directory:

      cd backend

    2. Install dependencies and create JAR

      mvn clean install

    3. Or, run the application directly

      mvn spring-boot:run

    Dockerfile

    This Dockerfile is used to build and run the SmartMat backend in a Docker container. It is based on the Eclipse Temurin JDK and JRE Alpine images to keep the image size small and ensure consistency in the Java environment.

    1. Install Docker from :

    Docker's official website.

    1. Build the Docker image:

    docker build -t your-image-name .

    1. Check the built image:

    docker images

    1. Run the Docker container:

    docker run -d --name your-container-name -p 8080:8080 your-image-name

    1. Access the application:

    http://localhost:8080

    1. Stop the container:

    docker stop your-container-name

    Tests

    1. Run Unit tests:

    mvn test

    1. Get jacoco coverage reports:

    mvn jacoco:prepare-agent jacoco:report -Dmaven.javadoc.failOnError=false

    The reports are located in target -> site -> jacoco -> index.html

    Authors and acknowledgment

    Show your appreciation to those who have contributed to the project.

    • Magnus Lutro Allison
    • Anders Montsko Austlid
    • John Fredrik Bendvold
    • Pedro Pablo Cardona Arroyave
    • Vebjørn Andreas Lind‐Solstad Myklebust
    • Birk Øvstetun Narvhus
    • Stian Lyng Stræte

    Thanks

    • The developers of kassal.app for use of their products API.
    • The faculty of NTNU for providing helpful advice and guidance trough the process. Especially:
      • Surya Kathayat
      • Grethe Sandstrak
      • Muhammad Ali Norozi