Skip to content
Full-featured CMS including blog, wiki, discussion, etc. powered by SpringBoot.
Branch: master
Clone or download
Latest commit bac8bde May 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ansible gen raw domain for https redirect May 7, 2019
local-conf update raw domain certs May 7, 2019
release update release May 7, 2019
script add backup script May 3, 2019
src add banner May 18, 2019
.gitignore add gitignore Mar 23, 2019
.travis.yml fix travis May 3, 2019
LICENSE add LICENSE Apr 20, 2019
README.md update link May 3, 2019
build.sh add comment May 5, 2019
checkstyle.xml fix pass checkstyle May 3, 2019
pom.xml fix version May 3, 2019

README.md

iTranswarp

Full-featured CMS including blog, wiki, discussion, etc. powered by SpringBoot.

Build Status

  • based on SpringBoot 2.x
  • OAuth2 integration (weibo, QQ, facebook, etc.)
  • SEO support
  • REST API
  • customized css with uikit2

Environment

  • JDK 11
  • MySQL 5.7
  • Redis 4/5
  • Nginx

Build

$ mvn -DskipTests=true clean package

Or check build.sh.

Initialize database

DDL and test data are generated by SchemaBuilder.java.

Create schema:

$ mysql -u root -p < release/ddl.sql

NOTE: re-run this SQL file will remove all existing data.

Import test data:

$ mysql -u root -p it < release/init.sql

Run

java -jar itranswarp.jar

Configuration

All configurations are passed by environments:

$ PROFILES=production TIME_ZONE=Asia/Shanghai DOMAIN=example.com \
  DB_HOST=localhost DB_PASSWORD=changeit \
  REDIS_HOST=localhost \
  java -jar itranswarp.jar

Please check application.yml for environment variables.

Deploy

iTranswarp is deployed by Ansible. Scripts is ready for Ubuntu Server 18.04 x64.

Deploy script:

$ ansible/deploy.py --profile <env>

The deploy script will do following:

  • install open jdk 11 headless;
  • install nginx;
  • install supervisor;
  • deploy jar;
  • deploy static resources;
  • generate nginx configuration;
  • generate supervisor configuration;
  • update symbol link;
  • reload supervisor;
  • reload nginx.
You can’t perform that action at this time.