Build
Main tech stack
- Spring Boot 2
- React 16
- SQLite 3
Prerequisite
- Node.js
- Maven
- SQLite 3 CLI
- JDK 1.8+
Building
- Clone or download the repository.
- Install the npm packages only the first time.
- cd web-app
- npm install
# Windows
build.bat
# Linux
./build.sh
- The java executable poli-x.y.z.jar is generated under the target folder. Run this to start the server.
java -jar target\poli-x.y.z.jar
Source code structure
|-- Repository
|-- config
|-- poli.properties
|-- db
|-- schema-sqlite.sql
|-- src
|-- web-app
|-- pom.xml
|-- build.sh
|-- build.bat
|...
- Src folder contains the java source code.
- Web-app folder contains the react code.
- Schema-sqlite.sql contains the database schema for SQLite 3. The poli.db file in the release is loaded from this schema.
- The build scripts build the code in web-app first, copy the generated files to src ~/static folder and finally run maven to build the java project.