Sunflower is a comprehensive auxiliary and management system that provides users with basic configuration, business management, and data analysis functionalities. Through a mini-program interface, users can reserve resources, manage resources, configure options, and view reservation records. Both ordinary users and administrators can efficiently complete various tasks through Sunflower.
- Automatic WeChat Login: Users can automatically log in by opening the mini-program through WeChat.
- User Management: View all users who have logged into the mini-program, grant or revoke administrator roles, and block or unblock users.
- Resource Reservation: Manage resources such as banquet halls, conference rooms, and guest rooms.
- Resource Operations: Add, modify, delete, enable/disable resources.
- Pricing Rules: Establish pricing rules for resources.
- Pricing Plans: Automatically regenerate pricing plans after adding, modifying, or deleting pricing rules.
- Configuration Options: The selection options used in mini-program reservations need to be configured through configuration management.
- User Reservations: Users can reserve resources through the mini-program and browse and manage their own reservations.
- Administrator Reservation Management: Administrators can view user-submitted reservation records, confirm reservation results, and view an overview of the reservation status of all resources.
- JDK 17 or higher
- Gradle 8.x or higher
- MySQL Database
- Redis (optional, for caching and session management)
- Docker (optional, for containerized deployment)
- Clone the project code locally:
git clone https://github.com/zhongjibing/sunflower.git
cd sunflower- Build the project using Gradle:
./gradlew build- After a successful build, the generated JAR file can be found in the
build/libsdirectory.
-
Ensure that the database is configured and configure the database connection information in the
application.ymlfile. -
Run the project using Gradle:
./gradlew bootRunAlternatively, you can deploy the generated JAR file to any server that supports Java applications and run it using the following command:
java -jar build/libs/sunflower-1.0.0.jar- Upload the generated JAR file to the server.
- Run the JAR file using a command-line tool.
- Write a Dockerfile:
FROM openjdk:17.0.2
VOLUME /tmp
ARG JAR_FILE=build/libs/sunflower-<version>.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]- Build the Docker image:
docker build -t sunflower .- Run the Docker container:
docker run -d -p 8080:8080 sunflowerHere, it is assumed that your application runs on port 8080. You can adjust it according to your actual situation.