π»Contributing

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.
Set up from the ground up π±
1. Installation of MongoDB Community Edition
Follow the installation instructions depending on your OS for MongoDB Installation.
Do not install MongoDB as a service.
You do not have to install MongoDB Compass.
You do not have to install mongosh.
Do not forget to add MongoDB binaries to the System PATH.
Install MongoDB on Linux (Ubuntu)
Install the latest version of MongoDB
2. Installation of MongoDB database tools
Follow the installation instructions depending on your OS for MongoDB Database Tools Installation.
Install MongoDB Database Tools on Windows
Install with the MSI Installer.
Install MongoDB Database Tools on Linux
Install with the DEB package.
Install MongoDB Database Tools on Mac
Install with Homebrew.
1. Installation of Nvm
2. Installation of npm/node.js
3. Clone the repository
We are currently using develop as our integration branch.
4. Set up server-side (Go)
4.1 Installation of Go
Download the latest stable release of Go from the official website: https://golang.org/dl/
Follow the installation instructions for your operating system.
4.2 Setup of environment
Execute these commands in a CMD prompt:
Execute these commands in a terminal:
After, close all your terminals because these commands will take effect on the initialization of any terminal
4.3 Verify installation
Open a new terminal
Run the command
go versionIf Go is installed correctly, you should see the version number printed to the console.
4.4 Setup for the application
Open a new command prompt and go to the
<repo path>/go_serverdirectory.Run the command
go run main.go(on first time, it should download the required libraries and launch the server)You can terminate the process by pressing
CTRL + CFinally, 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.gofiles must be followed by a rebuild. Congratulations, you're now ready to start developing Go applications!
5. Init submodules
6. Start the electron app!
On Windows, if you encounter error messages when running npm install, follow the steps here to solve the issue: https://github.com/nodejs/node-gyp#on-windows.
You will need to install the Visual Studio Build Tools (select the C++ build environment)
Install Python 3.11 from here
Use node version v18.16.1. Run:
nvm install v18.16.1nvm use v18.16.1
Set the Python3.11 :
$Env:npm_config_python="C:\path\to\python.exe" # PowerShell
Run
npm install -g node-gypRun again
npm install
To Test the Production Build
Build the Electron app and run the built version
The built app will be located in the
build/distfolder
Last updated