Repo étudiant pour les TPs de CICD de 3A.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Louis DUFOUR bf5a144fef
continuous-integration/drone/push Build is passing Details
Mise à jour de '.drone.yml'
1 year ago
.mvn/wrapper 1 year ago
images 1 year ago
src 1 year ago
support/tests 1 year ago
.drone.yml Mise à jour de '.drone.yml' 1 year ago
.gitignore 1 year ago
README.md Modification du chemin d'accès à Swagger 1 year ago
mvnw 1 year ago
mvnw.cmd 1 year ago
pom.xml 1 year ago

README.md


Logo

Personal Library Manager API

This API is designed to help you list all your books.

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage

About The Project

This API helps you to manage your books. You can add new ones, list yours, loan or borrow some others.

(back to top)

Built With

  • Java
  • Quarkus
  • MongoDB
  • PostgreSQL

(back to top)

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

  • Java (version >= 17)
  • Maven (version == 3.8.4)
  • MongoDB (version == 7)
  • Postgres (version == 14)
  • IntelliJ Ultimate Edition to use included tests files

Local Installation

  1. Clone the repo
    git clone TODO
    
  2. Create a local .env file at your project root and fill these variables
     MONGODB_CONNECTION_STRING=<TO_FILL>
     MONGODB_DATABASE_NAME=<TO_FILL>
     PG_USERNAME=<TO_FILL>
     PG_PASSWORD=<TO_FILL>
     PG_HOST=<TO_FILL>
    
  3. Build a local version of the application
    mvn clean package
    
    It will generate your compiled application into target/quarkus-app directory and your Swagger documentation files into the swagger directory.
  4. Run tests locally and publish sonar reports
    mvn verify sonar:sonar
    

(back to top)

Usage

For more examples, please refer to the Swagger Documentation

(back to top)