sited-io / sited-project
- вторник, 24 июля 2018 г. в 00:16:00
Java
A developer friendly Java CMS based on JAX-RS, Guice style DI, Bean Validation, JPA and React.
A developer friendly Java CMS based on JAX-RS, Guice style DI, Bean Validation, JPA and React.
![]() |
![]() |
---|---|
Edit Template | Edit Page |
![]() |
![]() |
Index Page | Post Page |
Frameworks | Content | Notes |
---|---|---|
OS | Windows Linux Mac OS |
|
Database | MySQL HSQL |
For other databases, need to manually install the JDBC driver |
Backend Console | React 16 Element UI |
Support IE11+ |
Frontend | jQuery 1.1.12 Bootstrap 3.3.7 |
Support IE8+ |
API | Jersey Hibernate Hibernate Validator Jackson Guava DBCP |
|
Messaging | RabbitMQ | Kafaka support is under development |
Caching | Redis | |
Template Engine | Provides Thymeleaf like syntax JEXL |
|
Modules | ||
User | Login Page Register Page reset password support role permission management |
Oauth support is under development |
Page | Index Page Category Page Post Page Tag Page Archive Page Search result page |
Support drag&drop widgets to edit template |
Page Index | Index Pages with Lucene | |
File | File browser image scale file upload file download |
Folder permissions similar to Linux file system is under development |
SMTP client SES client Email Template Email Tracking |
||
Pincode | Email pincode | |
Captcha | Simple captcha image |
These instructions will get you a copy of the Sited 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/sited
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(".sited");
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);
}
}
What's next
0.9.0 · Beta release
chiron.chi#gmail.com
chiron.chi#gmail.com
sited-io
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