PromucFlow_constructor/contributions/ServerSetup.md
Nikhil Nandagopal cf650f8ad0
Feature/hacktoberfest (#841)
* 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>
2020-09-30 23:23:10 +05:30

1.6 KiB

Running Server Codebase

  • We use the Spring framework in Java for all backend development.
  • We use maven as 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
  1. After cloning the repository, change your directory to app/server

  2. 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.

  1. Create a copy of the envs/dev.env.example

    cp 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.

  1. Modify the property values in the file .env to point to your local running instance of MongoDB and Redis.

  2. 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.

  1. Start the Java server by running
./scripts/start-dev-server.sh

By default, the server will start on port 8080.

  1. When the server starts, it automatically runs migrations on MongoDB and will populate it with some initial required data.

  2. 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.