Skip to content

Quick Start

Peter edited this page Jan 12, 2017 · 4 revisions

Build Project

Before the start, make sure you have setup environment:

  • JDK version above 1.8
  • MySQL
  • Maven
  • Tomcat

1 Clone or download source code from Github

2 Setup metadata in MySQL database for CBorad

CREATE DATABASE cboard;
-- Execute script 
source CBoard/sql/mysql/mysql.sql

3 Modify configuration for metadata db connection

CBoard/src/main/resources/config.properties

validationQuery=SELECT 1
jdbc_url=jdbc:mysql://localhost:3306/cboard
jdbc_username=<yourdbusername>
jdbc_password=<yourdbpassword>

4 Modify Spring Security implement strategy, uncomment line of jdbc

CBoard/src/main/resources/spring-security.xml

<import resource="spring-security-jdbc.xml"/>

5 Build and package application war

mvn clean package

6 Publish war into your Tomcat web container

  • Stop running tomcat
  • Copy CBoard\target\cboard.war into webapp path of tomcat and rename cboard.war to ROOT.war, make sure deploy as name of ROOT in case of resource location exception
  • Delete or rename the old ROOT folder in your webapp path
  • Start tomcat

7 Access through web explorer, Chrome is suggested

site: http://yourserverip:8080
default login username/password: admin/root123