https://github.com/damingerdai/jobs
a simple schedule jobs management systems based on spring boot, quartz and react
https://github.com/damingerdai/jobs
docker docker-compose flyway gradle postgresql quartz react spring-boot
Last synced: about 1 year ago
JSON representation
a simple schedule jobs management systems based on spring boot, quartz and react
- Host: GitHub
- URL: https://github.com/damingerdai/jobs
- Owner: damingerdai
- Created: 2020-10-14T00:45:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-04-08T12:10:00.000Z (about 1 year ago)
- Last Synced: 2025-04-12T02:12:09.387Z (about 1 year ago)
- Topics: docker, docker-compose, flyway, gradle, postgresql, quartz, react, spring-boot
- Language: Java
- Homepage:
- Size: 4.37 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jobs
----
`jobs` is a simple schedule jobs management systems based on [spring boot](https://spring.io/projects/spring-boot/), [quartz](http://www.quartz-scheduler.org/) and [react](https://reactjs.org/).



## Requirement
1. [docker](https://www.docker.com/)
2. [java](http://jdk.java.net/17/)
3. [nodejs](https://nodejs.org/en/)
## Setup
### Datasource
create a docker network(only first).
```shell script
docker network create daming-jobs
```
create a docker volume(only first).
```shell script
docker volume create --name=daming-jobs
```
setup a postgresql db.
```shell script
docker-compose up db
# db uses an image, skipping
# docker-compose up --force-recreate db
```
run postgresql migrate.
for Linux or Mac:
```shell script
./gradlew flywayMigrate
```
for Windows:
```shell
./gradlew.bat flywayMigrate
```
### Run
#### Back End
To run the application, run the following command in a terminal window (in the complete) directory:
```shell
./gradlew bootRun (./gradlew.bat bootRun for windows)
```
#### Front End
navigate to the `src/main/react` directory,
install 3rd dependencies(only first)
```shell
yarn
```
run the react
```shell
yarn start
```
open the [browser](http://localhost:3000/)

## bazel
new manve install json
```
bazel run @maven//:pin
```
update maven install json
```
bazel run @unpinned_maven//:pin
```
build and run
```
bazel build //:springboot
bazel run //:springboot
```
#### Swagger UI
`jobs` support [swagger ui](http://127.0.0.1:8443/swagger-ui/index.html).
