Skip FOLIO Project Navigation

GitHub and Twitter:

These are notes to assist developers with creating a new FOLIO module as a repository. Initial setup files and configuration.

Configuration at GitHub

If the “New” button is not available to you at then contact FOLIO infrastructure (e.g. via the issue tracker or the #support channel).

Otherwise follow the GitHub prompts to create a new repository, and if needed to then import an existing repository.

Take care to choose wisely for the repository name. It can be disruptive to change that.

The following first few items can only be done by the initial creator of the repository or its owners, and should happen early. Use its “Settings” area. (If the “Settings” tab is not available to you, then see the “support” advice above.)

Disable the Issues and Wiki via Settings. We use the FOLIO resources instead. Do this as soon as possible, so that issues are created in the FOLIO issue tracker.

Ensure that access is configured for the relevant FOLIO GitHub Teams.

Add a concise Description to the GitHub repository. Consider that this will also be used elsewhere. This Description is near the top of your GitHub front page. (If the “Edit” button is not available to you, then see the “support” advice above.)

Add initial files

There are facilities to assist with starting a new module. For front-end modules see stripes-cli. For back-end RMB-based modules see mod-rmb-template. Otherwise follow the structure of a relevant existing module.

Follow the Naming conventions guidelines.

The Commence a module - structure and configuration guide explains a consistent layout.

Compare initial files with an existing FOLIO module repository (e.g. mod-notes, ui-users). The Stripes/UI/backend modules might be slightly different (e.g. =

Add LICENSE and and files.

Ensure that the copyright and license statement is near the top of the README. Use the initial year of creation for the date.

Ensure that any package.json and pom.xml etc. type of configuration file has the appropriate “licence” elements.

Add .editorconfig file.

Add initial or file.

If necessary, add a basic .gitignore file. Developers will have their own ~/.gitignore_global to handle most.

Add other configuration files. Follow similar existing repositories. For back-end modules: descriptors/ModuleDescriptor-template.json, Dockerfile, Jenkinsfile, etc. For front-end modules: package.json, .eslintrc, etc.

Open a Jira issue, so that the project is integrated into Jenkins, the correct permissions are set on the repo, and an appropriate Jira project can be created (if applicable). Add the label ‘ci’. There is one example at FOLIO-949. Suggest a short name for the Jira project.

In the bottom “Further information” section of the README, add a link to your project issue tracker.