https://github.com/saibot94/jess-webapp
Web application example with the Jess Rule Engine made in Eclipse
https://github.com/saibot94/jess-webapp
gradle gretty java jess webapp
Last synced: 8 months ago
JSON representation
Web application example with the Jess Rule Engine made in Eclipse
- Host: GitHub
- URL: https://github.com/saibot94/jess-webapp
- Owner: saibot94
- License: mit
- Created: 2016-03-20T13:14:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-07-31T15:23:05.000Z (almost 8 years ago)
- Last Synced: 2025-07-28T02:21:39.449Z (11 months ago)
- Topics: gradle, gretty, java, jess, webapp
- Language: Java
- Size: 10.7 MB
- Stars: 5
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jess Web Application
This app uses the Jess rule engine to create automatic recommendations for users, based on what they already bought.
There are 2 main Jess files in the `src/main/webapp` folder:
* app.clp - contains all the business logic rules and the definition of the different product / recommendation templates
* facts.clp - use this file to load additional facts in your application.
## Running the app
The app uses Gradle as a package manager and build engine. First, you need to setup the jess library, as it's an external JAR.
Installation steps:
1. In the `libs` folder, add the `jess.jar` file from `./deps/Jess71p2/lib/` (once extracted).
2. Run `./gradlew build`
3. Run `./gradlew appRun` to run it locally in an in-process Gretty servlet container.
In order to package everything and deploy it as a WAR to tomcat, for example, run:
```
./gradlew war
```
Then, take the file from `build/libs/jess-webapp.war` and put it in your webapp folder for the servlet engine.
## Development
In order to change implementation details from the web application, everything can be found under `src/main/webapp` for the jsp and clp files.
I strongly suggest using IntelliJ for developing the code in this project. The `idea` plugin is already provided by gradle. To setup your local development files, run:
```
./gradlew idea
```
## Disclaimer
This hasn't been tested on Windows, please let me know if there's any issue with it.
## License
MIT