githubEdit

πŸ’»Contributing

High-Level Architecture of the Main Framework Used in the Application

The MEDomics platform architecture

The map below illustrates the organization of files, modules, databases, and the Frontend-Backend connection within the MEDomics platform. This visual guide is designed to support new contributors in understanding the application’s structure, streamlining the integration of new features, and aiding efficient navigation through the codebase.

the MEDomics platform detailed architecture

Set up from the ground up 🌱

1. Installation of MongoDB Community Edition

Follow the installation instructions depending on your OS for MongoDB Installationarrow-up-right.

Install MongoDB on Windowsarrow-up-right

2. Installation of MongoDB database tools

Follow the installation instructions depending on your OS for MongoDB Database Tools Installationarrow-up-right.

1. Installation of Nvm

2. Installation of npm/node.js

3. Clone the repository

circle-exclamation

4. Set up server-side (Go)

4.1 Installation of Go

  1. Download the latest stable release of Go from the official website: https://golang.org/dl/arrow-up-right

  2. Follow the installation instructionsarrow-up-right for your operating system.

4.2 Setup of environment

Execute these commands in a CMD prompt:

After, close all your terminals because these commands will take effect on the initialization of any terminal

4.3 Verify installation

  1. Open a new terminal

  2. Run the command go version

  3. If Go is installed correctly, you should see the version number printed to the console.

4.4 Setup for the application

  1. Open a new command prompt and go to the <repo path>/go_server directory.

  2. Run the command go run main.go (on first time, it should download the required libraries and launch the server)

  3. You can terminate the process by pressing CTRL + C

  4. Finally, build the app by running go build main.go (It should create an executable file -> that file will be run by the client-side JavaScript, so modifications to .go files must be followed by a rebuild. Congratulations, you're now ready to start developing Go applications!

5. Init submodules

6. Start the electron app!

circle-exclamation
circle-info

MongoDB configuration

The MEDomicsLab platform uses port 54017 as the default MongoDB connection port. For database visualization and management, we recommend using MongoDB Compassarrow-up-right, the official GUI client from MongoDB.

Key Details:

  • Default Port: 54017

  • Recommended Client: MongoDB Compass

  • Connection String Format: mongodb://localhost:54017/

circle-info

Modify startup settings

  1. Go to file medomics.dev.js

  2. Here is a description of the Object:

To Test the Production Build

Build the Electron app and run the built version

The built app will be located in the build/dist folder

Last updated