Contributing
Kailona is currently under alpha development. Any contribution such as platform improvements, new plugins, documentation, testing, translation, etc. would be greatly appreciated.
Please read this section to learn the architecture and project structure.
Code of Conduct#
Please read our code of conduct for better understanding of what actions will or will not be tolerated.
#
Development Process#
Join our forumThere are many ways to contribute to Kailona. Please join our forum here
#
Reporting issues- Please search the existing issues first, it's likely that your issue was already reported or even fixed.
- Go to one of the repositories, click "issues" and type any word in the top search/command bar.
- You can also filter by appending e.g. "state:open" to the search string.
- More info on search syntax within github
- This repository EHR is only for issues within the Kailona app.
Help us to maximize the effort we can spend fixing issues and adding new features, by not reporting duplicate issues.
#
Sign your workWe use the Developer Certificate of Origin (DCO) as a additional safeguard for the Nextcloud EHR project. This is a well established and widely used mechanism to assure contributors have confirmed their right to license their contribution under the project's license. Please read contribute/developer-certificate-of-origin. If you can certify it, then just add a line to every git commit message:
Use your real name (sorry, no pseudonyms or anonymous contributions). If you set your user.name
and user.email
git
configs, you can sign your commit automatically with git commit -s
. You can also use git aliases like
git config --global alias.ci 'commit -s'
. Now you can commit with git ci
and the commit will be signed.
#
Semantic commit messagesSee how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
Example
The various types of commits:
feat
: (new feature for the user, not a new feature for build script)fix
: (bug fix for the user, not a fix to a build script)docs
: (changes to the documentation)style
: (formatting, missing semi colons, etc; no production code change)refactor
: (refactoring production code, eg. renaming a variable)test
: (adding missing tests, refactoring tests; no production code change)chore
: (updating grunt tasks etc; no production code change)
Use lower case not title case!
#
Code conventions#
Style guidePrettier will catch most styling issues that may exist in your code. You can check the status of
your code styling by simply running npm run prettier
.
However, there are still some styles that Prettier cannot pick up.
#
General- Most important: Look around. Match the style you see used in the rest of the project. This includes formatting, naming files, naming things in code, naming things in documentation.
- "Attractive"
#
Documentation- Do not wrap lines at 80 characters - configure your editor to soft-wrap when editing documentation.
#
Build the sourceFor building, node
and npm
are required.
The app can be built using Makefile
#
Automatic rebuilding during developmentDuring development the webpack dev server can be used to automatically build the code for every change.
Since the compiled source from the webpack dev server need to be injected in the regular Nextcloud sources a proxy setup is needed to combine things.
If your local Nextcloud setup runs at http://localhost:8080, an nginx configuration for the proxy would look like the following:
This will run the proxy at http://localhost:3001/
With the proxy configured you can start the webpack dev server and specify where the Nextcloud proxy is.
Alternativately, Nextcloud and proxy server can be run in Docker for development using the following steps:
- Create
$HOME/NextcloudWorkspace
,$HOME/NextcloudWorkspace/db
and$HOME/NextcloudWorkspace/nextcloud
folder - Copy the content of
.development
folder in this repo into the$HOME/NextcloudWorkspace
folder - Run
docker-compose up -d
in the$HOME/NextcloudWorkspace
folder - Wait a bit for Nextcloud initialization
- Update
$HOME/NextcloudWorkspace/nextcloud/config/config.php
to usehttp://localhost:3001
url and enable debug mode - Clone the repo in the
$HOME/NextcloudWorkspace/nextcloud/apps
folder - Run
PROXY_URL=http://localhost:3001/ make watch
- Go to
http://localhost:3001
and enableElectronic Health Records (EHR)
application in Nextcloud
#
TranslationsPlease submit translations via Transifex.