A JAVA REST API service to editing a register address table by user.
In order to build the application, your environment should fulfill the following requirements:
Download and unzip the source code in your developing folder RegEdit_PATH.
Before building the application you must create and popolulate the RegEdit database.
You can create a MySQL database using the script regedit-create-mysql.sql stored in the RegEdit_PATH/db folder.
Also you can create a PostgreSQL database using the script regedit-create-postgres.sql stored in the RegEdit_PATH/db folder.
Then yo can load the metadata and the test data, using the script regedit-data.sql stored in the RegEdit_PATH/db folder.
As a first step, configure the database connection in the 'application.yml' file, located in the path [RegEdit_PATH]/src/main/resources:
Postgres connection
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres?currentSchema=regedit&charset=UTF-8
spring.datasource.username=db_username
spring.datasource.password=db_password
spring.datasource.driverClassName=org.postgresql.Driver
MySQL connection
spring.datasource.url=jdbc:mysql://localhost:3306/regedit?useSSL=false&useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
spring.datasource.username=db_username
spring.datasource.password=db_password
spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
Now you can perform your first build of the application using Maven comand:
[RegEdit_PATH]> mvn package
If the build process ends successfully, you are ready to run the application: The application is built using the open source framework Spring Boot, which generates an executable jar (that can be run from the command line). Spring Boot creates a stand-alone Spring based Applications, with an embedded Tomcat, that you can "just run".
[RegEdit_PATH]> java –jar target/regedit.jar
or using Maven comand:
[RegEdit_PATH]> mvn spring-boot:run
You can run the RegEdit Service as Docker containers using docker compose:
[RegEdit_PATH]> docker-compose up
You can test the application and explore the available services, linking to API documentation by Swagger tools:
http://localhost:8080/swagger-ui.html
RegEdit Service is EUPL-licensed
Content type
Image
Digest
Size
262.4 MB
Last updated
almost 6 years ago
docker pull mecdcme/regedit