GithubHelp home page GithubHelp logo

air-platform's Introduction

Air Community Platform

Air Community Platform.

MUST follow the instructions of NOTE section.

NOTE

  • Please install JDK 1.8 before build the project.
  • MUST NOT add any domain logics to this project.
  • MUST NOT push any jar files, use maven dependency instead.
  • MUST NOT push any unnecessary binary files.
  • MUST push source code with meaningful message git commit -m "meaningful message".
  • MUST import codequality/codestyle-formatter.xml, and format source code (CTRL+SHIFT+F) and organize imports (CTRL+SHIFT+O) before commit.
  • MUST use standard JavaDoc Tags on all java source code.
  • SHOULD use English in JavaDoc, comments and any source code related resources as possible.
  • SHOULD follow Java Coding Conventions and Java Style Guide if you haven't to improve code quality.

Run in Eclipse

  • Project Properties > Maven > Active Maven Profiles: dev
  • Run net.aircommunity.platform.Application with VM Arguments: -Dspring.profiles.active=dev

Build for Development

mvn clean package -P dev

Build for Production

mvn clean package -P prd

Deployment

  • Require MySQL 5.5.3+ to support utf8mb4 (most bytes 4)

  • Update /etc/mysql/my.cnf, and service mysql restart

    [mysqld] skip-character-set-client-handshake collation-server=utf8_unicode_ci character-set-server=utf8

  • Check charset:

    SHOW VARIABLES WHERE Variable_name LIKE 'character_set_%' OR Variable_name LIKE 'collation%';

  • Create database

    CREATE USER 'airadmin' IDENTIFIED BY 'air@p0o9i8u7'; GRANT ALL PRIVILEGES ON . TO 'airadmin'@'%' IDENTIFIED BY 'air@p0o9i8u7' WITH GRANT OPTION; GRANT ALL PRIVILEGES ON . TO 'airadmin'@'localhost' IDENTIFIED BY 'air@p0o9i8u7' WITH GRANT OPTION; FLUSH PRIVILEGES; CREATE DATABASE air_platform CHARACTER SET utf8 COLLATE utf8_general_ci;

  • Update Table

    Update table after all tables are auto generated: update air_platform_product_comment column: content set encoding to utf8mb4 and collation to utf8mb4_general_ci to support emoji

  • Config Redis Cache

    maxmemory in bytes, e.g. 3G=3221225472

    maxmemory 3221225472

  • Run Platform

    AIR_HOME/start.sh - start platform AIR_HOME/stop.sh - stop platform Where AIR_HOME is the home of AIR Platform deployment

air-platform's People

Contributors

kswapd avatar gembin 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.