cp .env.example .envdocker-compose -f ./dockercompose.yml up It is possible that Spring will fail on the first boot. This is because the database is not ready yet. Just restart the Spring container and it should work on the second boot without any problems.
Note: If you encounter permission issues run: chmod +x mvnw
For creating the first collection:
curl --location 'http://localhost:8080/collections/add' \
--form 'name="Kurze Märchen"'For viewing all existing collections:
curl --location 'http://localhost:8080/collections/'For creating the first sentence:
curl --location 'http://localhost:8080/sentences/add' \
--form 'text="Es war einmal..."' \
--form 'pronunciation="pronunciation text"' \
--form 'collectionId="1"'For viewing all existing sentences:
curl --location 'http://localhost:8080/sentences/'For uploading a file containing a collection of sentences:
curl --location 'http://localhost:8080/collections/upload' \
--form 'file=@/path/to/your/file.csv;type=text/csv' You can search by id, name, ... as well as update and delete the collections and sentences.
- Java 21
- Spring Boot
- Docker
- MySQL
- add authentication
- verify user input
- add tests