An open API service indexing awesome lists of open source software.

https://github.com/danielpuentee/quiz-java

Short quiz to create questions and play games. It is created in Java and Maven and Dockerised.
https://github.com/danielpuentee/quiz-java

java maven spring spring-boot

Last synced: 9 months ago
JSON representation

Short quiz to create questions and play games. It is created in Java and Maven and Dockerised.

Awesome Lists containing this project

README

          




# 🤯 Quiz server applying Mysql and Spring Boot with JPA

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

## 🔩  How install the server

```sh
docker network create app-spring
cd MvanProject/Service/mysql/
docker build -t mysql-spring .
docker run -d --name mysql-spring --network app-spring mysql-spring:latest
cd ..
cd quiz/
docker build -t app-spring .
docker run --rm -it --name app-spring -p 8080:8080 --network app-spring app-spring:latest
```

## 🔎 Search

| Search Type | Command | Result |
| ------------- | ------------- | -------- |
| GET | http://localhost:8080/preguntas | Every answer and question of the Quiz |
| GET | http://localhost:8080/preguntas/ | All questions with the indicated word are displayed |
| DELETE | http://localhost:8080/ | The question containing that ID will be deleted |
| POST - PUT | http://localhost:8080/ | Questions can be introduced or updated |