GithubHelp home page GithubHelp logo

kongjc / itranswarp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from michaelliao/itranswarp

0.0 1.0 0.0 32.94 MB

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

Home Page: https://www.liaoxuefeng.com

License: Apache License 2.0

Python 0.02% Shell 0.02% Java 11.73% CSS 21.02% JavaScript 60.48% HTML 6.72%

itranswarp's Introduction

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.

itranswarp's People

Contributors

michaelliao avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.