This document explains how to start Lowcoder server locally.
Java - OpenJDK 17 Maven - Version 3+ (preferably 3.8+)
If you don't have an available MongoDB, you can start a local MongoDB service with docker:
docker run -d --name lowcoder-mongodb -p 27017:27017 -e MONGO_INITDB_DATABASE=lowcoder mongo
Configure the MongoDB connection URI in the application-lowcoder.yml
If you don't have an available MongoDB, you can start a local Redis service with docker:
docker run -d --name lowcoder-redis -p 6379:6379 redis
Configure the Redis connection URI in the application-lowcoder.yml
- Clone Lowcoder repository
- Next, execute the following commands in sequence
cd server
mvn clean package
java -Dpf4j.mode=development -Dspring.profiles.active=lowcoder -Dpf4j.pluginsDir=lowcoder-plugins -jar lowcoder-server/target/lowcoder-server-1.0-SNAPSHOT.jar
Configure the Run/Debug configuration as shown in the screenshot below, the version used in the screenshot is IntelliJ
IDEA 2021.3.2 (Community Edition):
JDK version | Java 17 |
-cp | lowcoder-server |
VM options | -Dpf4j.mode=development -Dpf4j.pluginsDir=lowcoder-plugins -Dspring.profiles.active=lowcoder -XX:+AllowRedefinitionToAddDeleteMethods --add-opens java.base/java.nio=ALL-UNNAMED |
Main class | com.lowcoder.api.ServerApplication |
Next, execute the following commands in sequence
cd server
mvn clean package
After Maven package runs successfully, you can start the Lowcoder server with IntelliJ IDEA.