Build(build-docker.sh): Save build time to file
Overview (ZH, EN)
This project is the backend API of Oxygen Toolbox. Provides tool store, tool management, authentication, user management and other functions.
Requires
- Java 17+
- MySQL
- Redis
Related projects
Desktop Client of Oxygen Toolbox
Android Client of Oxygen Toolbox
Quick Start
- First run, generate configuration file template
java -jar oxygen-api.jar
- Copy the
application-config.example.ymlfile in thedatadirectory to the running directory and rename it toapplication-config.yml
cp ./data/application-config.example.yml application-config.yml
-
Edit the content of the configuration file
application-config.yml -
Run again
java -jar oxygen-api.jar
Security
Integration with Spring Security and add other filter for jwt token process. The secret key is stored in application-config.yml.
Database
Two databases, MySQL + SQLite, are used. MySQL is used to store key data, and SQLite is used to store logs and other data that require a large amount of reading and writing.
Q&A
Q: What is the default administrator account and password?
A: If configured in
application-config.ymlbefore initializing the database, use the specified account and password. If not configured, a random password will be generated by default. See the console output for details.
Q: Do I need to initialize the database?
A: This project uses
Flywayto automatically initialize the database without manually defining the data table structure. To ensure data security, please back up the database before upgrading.