mirror of
https://github.com/mariadb-corporation/dev-example-todo.git
synced 2026-01-11 10:03:10 +00:00
TODO - Java Spring Boot (with JDBC) API
Requirements
This sample was created using the following techologies and they must be installed before proceeding.
Getting started with the app
Configure the code
Configure the MariaDB connection with your connection details in application.properties.
Example implementation:
spring.datasource.url=jdbc:mariadb://localhost:3306/todo
spring.datasource.username=app_user
spring.datasource.password=Password123!
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
Build the code
Once you have retrieved a copy of the code you're ready to build and run the project!
Build the project by executing the following CLI command:
$ mvn package
Run the app
Once you've pulled down the code and have verified built the project you're ready to run the application!
- Execute the following CLI command
$ mvn spring-boot:run
The following steps also exist within the "Build and run" section of the root README, and are for startin the React.js project once this API project has been started.
- Navigate to the ../../client folder and execute the following CLI command to start the React.js application.
$ npm install
$ npm start
- Open a browser window and navigate to http://localhost:3000.