> mvn clean package
Or download questionbank-1.0.jar from Releases.
- Create quiz database structure in mysql database:
> mysql <docs/create_database.sql
- Write quiz questions and answers and upload it to the database:
> mysql <docs/sample_questions.sql
- Configure the port and database connection of backend.
Place an application.yaml
file next to the questionbank-1.0.jar
with the following sheme and edit its contents:
server:
port: 8090
spring:
datasource:
url: jdbc:mysql://localhost:3306/questionbank
username: root
password: root
> java -jar questionbank-1.0.jar
You can reach the OpenAPI documentation of this backend on the following url if the application runs:
http://host:port/swagger-ui.html
The API docs available in the docs folder as OpenAPI-doc.json
, you can paste its content to https://editor.swagger.io
to read it in human readable format.