A developer friendly Java CMS based on JAX-RS, Guice style DI, Bean Validation, JPA and React.
A developer friendly module based JAX-RS micro service framework.
These instructions will get you a copy of the JWeb CMS up and running on your local machine.
CREATE DATABASE main CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'user'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON * . * TO 'user'@'localhost'; FLUSH PRIVILEGES;
./bin/JWeb
http://localhost:8080
Optional, if you skip the SMTP settings, user register will be disabled.
http://localhost:8080/admin/
It is because of Java 10 JEE split package issues. A temp fix for Intellij IDEA is:
--add-modules=java.xml.bind --patch-module java.transaction=~\.gradle\caches\modules-2\files-2.1\javax.transaction\javax.transaction-api\1.3\e006adf5cf3cca2181d16bd640ecb80148ec0fce\javax.transaction-api-1.3.jar
To start an App
:
public class Main {
public static void main(String[] args) throws InterruptedException {
Path dir = Paths.get(System.getProperty("user.home")).resolve(".JWeb");
App app = new UndertowApp(dir);
ServiceLoader.load(AbstractModule.class).forEach(app::install);
app.start();
}
}
To create a Module
:
public class TodoServiceModuleImpl extends TodoServiceModule {
@Override
protected void configure() {
//import DatabaseModule to register entity and create repository
module(DatabaseModule.class)
.entity(Task.class);
bind(TaskService.class);
//register service implementation
api().service(TaskWebService.class, TaskWebServiceImpl.class);
}
}
0.9.1
0.9.0
If you need support for customization or commerce license, please feel free to contact me
chiron.chi#gmail.com
See also the list of contributors who participated in this project.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
This project is licensed under the AGPL License - see the LICENSE.md file for details