* Update IssuesReport.md * Update IssuesReport.md * Create ClientSetup.md * Update ClientSetup.md * Update ClientSetup.md * Update ClientSetup.md * Create ServerSetup.md * Update ClientSetup.md * Create CodeContributionsGuidelines.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CodeContributionsGuidelines.md * Update IssuesReport.md * Update CodeContributionsGuidelines.md * Update CONTRIBUTING.md * Update IssuesReport.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update ClientSetup.md * Update ClientSetup.md Co-authored-by: Nikhil <nikhil@users.noreply.github.com> Co-authored-by: Hetu Nandu <hetunandu@gmail.com>
1.6 KiB
Running Server Codebase
- We use the Spring framework in Java for all backend development.
- We use
mavenas our build tool. - We use pf4j as a library for plugins.
- We use MongoDB for our database.
- We use IntelliJ as our primary IDE for backend development
-
After cloning the repository, change your directory to
app/server -
Run the command
mvn clean compile
This generates a bunch of classes required by IntelliJ for compiling the rest of the source code. Without this step, your IDE may complain about missing classes and will be unable to compile the code.
-
Create a copy of the
envs/dev.env.examplecp envs/dev.env.example .env
This command creates a .env file in the app/server folder. All run scripts pick up environment configuration from this file.
-
Modify the property values in the file
.envto point to your local running instance of MongoDB and Redis. -
In order to create the final JAR for the Appsmith server, run the command:
./build.sh
This command will create a dist folder which contains the final packaged jar along with multiple jars for the binaries for plugins as well.
- Start the Java server by running
./scripts/start-dev-server.sh
By default, the server will start on port 8080.
-
When the server starts, it automatically runs migrations on MongoDB and will populate it with some initial required data.
-
You can check the status of the server by hitting the endpoint: http://localhost:8080 on your browser. By default you should see an blank page.