Skip to content

Installation

Developer Environment Installation

To get started make sure you pulled the contents from GitLab.
1. Download and install Intellij IDEA.
2. Install Maven using this guide.
3. Install the dependencies from the backend project (using the IDE or mvn clean install).
4. Install Node.js using this guide.
5. Install the dependencies from the frontend project (using the IDE or npm install).
6. Download the data-files.zip from the shared folder.
7. Unzip the file and move the data-files into the root folder (the folder containing the README.md, .gitignore, etc).
8. You are ready to go, read the documentation and get started working on a new feature!

Running the application

To run the application, make sure that a .env file is added to the /backend directory. The file should contain the following items:

  • JWT_SECRET_KEY: An encryption key to make sure that the JWT are encrypted.
  • DB_URL: The url to the database (postgresql or mysql database). Template: jdbc:<database type>://host:port/database name
  • DB_USERNAME: The username of the user you use to login.
  • DB_PASSWORD: The password of the user you use to login.

After that you can run the application via the build in application running system of Intellij IDEA. (The main class is ElectionBackendApplication). The frontend can be run by using the command npm run dev, make sure to perform this command in the correct directory.